Ldi:20 (Load Immediate 20-Bit Data To Destination Register) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.54
LDI:20 (Load Immediate 20-bit Data to Destination
Register)
Extend the 20-bit immediate data with 12 zeros in the higher bits, load to "Ri".

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

Assembler format:
LDI:20 #i20, Ri
Operation:
extu (i20) → Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
2 cycles
Instruction format:
Example:
LDI:20 #54321H, R3
148
N
Z
V
C
MSB
(n+0)
1
0
0
(n+2)
R3
0 0 0 0 0 0 0 0
Before execution
i20(higher)
1
1
0
1
1
i20(lower)
LSB
Ri
R3
0 0 0 5 4 3 2 1
After execution

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents