243
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.126 EXTUB (Unsign Extend from Byte Data to Word Data)
Extends the byte data indicated by "Ri" to word data as an unsigned binary value.
■ EXTUB (Unsign Extend from Byte Data to Word Data)
Assembler format: EXTUB Ri
Operation: extu (Ri) → Ri (byte → word)
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 1 cycle
Instruction format:
Example: EXTUB R1
NZVC
––––
MSB LSB
100101111001 Ri
R1
FFFF FFFF
R1
0000 00FF
Before execution After execution
Instruction bit pattern : 1001 0111 1001 0001