7.55
LDI:8 (Load Immediate 8-bit Data to Destination Register)
Extend the 8-bit immediate data with 24 zeros in the higher bits, load to "Ri".
■ LDI:8 (Load Immediate 8-bit Data to Destination Register)
Assembler format:
LDI:8 #i8, Ri
Operation:
extu (i8) → Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
1 cycle
Instruction format:
Example:
LDI:8 #21H, R3
N
Z
V
C
–
–
–
–
MSB
1
1
0
0
R3
0 0 0 0 0 0 0 0
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
i8
R3
LSB
Ri
0 0 0 0 0 0 2 1
After execution
149