EXTSW
Operation
Sign-extends a byte source to a word EA destination.
Assembler Syntax
EXTSW.B Rn(s), <ea>(e)
EXTSW.B <ea>(s), <ea>(d)
Privilege
Unprivileged
Repeat eligibility
REP eligible; REPcc observes dst
Sign-extends the source operand from byte size to word size and stores the two-byte result to an EA destination. The low byte of the source is copied into the result, and the remaining high result bits are filled with the source sign bit. EXTSW has no Rn destination form; use EXTSQ.B for a sign-extended Rn result.
2.75in
Encodings
EXTSW.B Rn(s), <ea>(e)
Format: Instruction format for EXTSW.B Rn(s), <ea>(e)
dst — excluded: immediate [invalid_destination]
2.75in EXTSW.B <ea>(s), <ea>(d)
Format: Instruction format for EXTSW.B <ea>(s), <ea>(d)
dst — excluded: immediate [invalid_destination]