147
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.53 LDI:32 (Load Immediate 32-bit Data to Destination
Register)

Loads 1 word of immediate data to "Ri".

LDI:32 (Load Immediate 32-bit Data to Destination Register)

Assembler format: LDI:32 #i32, Ri
Operation: i32 Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 3 cycles
Instruction format:
Example: LDI:32 #87654321H, R3
NZVC
––––
MSB LSB
100111111000 Ri(n+0)
i32(higher)
i32(lower)
(n+2)
(n+4)
R3 R3
8765 43210000 0000
Before execution After execution

Instruction bit pattern : 1001 1111 1000 0011

: 1000 0111 0110 0101

: 0100 0011 0010 0001