242
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.125 EXTSB (Sign Extend from Byte Data to Word Data)
Extends the byte data indicated by "Ri" to word data as a signed binary value.
■ EXTSB (Sign Extend from Byte Data to Word Data)
Assembler format: EXTSB Ri
Operation: exts (Ri) → Ri (byte → word)
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 1 cycle
Instruction format:
Example: EXTSB R1
NZVC
––––
MSB LSB
100101111000 Ri
R1
0000 00AB
R1
FFFF FFAB
Before execution After execution
Instruction bit pattern : 1001 0111 1000 0001