244
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.127 EXTSH (Sign Extend from Byte Data to Word Data)
Extends the half-word data indicated by "Ri" to word data as a signed binary value.
■ EXTSH (Sign Extend from Byte Data to Word Data)
Assembler format: EXTSH Ri
Operation: exts (Ri) → Ri (half-word → word)
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 1 cycle
Instruction format:
Example: EXTSH R1
NZVC
––––
MSB LSB
100101111010 Ri
R1
0000 ABCD
R1
FFFFABCD
Before execution After execution
Instruction bit pattern : 1001 0111 1010 0001