CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.56
LD (Load Word Data in Memory to Register)
Loads the word data at memory address "Rj" to "Ri".
■ LD (Load Word Data in Memory to Register)
Assembler format:
LD @Rj, Ri
(Rj) → Ri
Operation:
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
b cycle(s)
Instruction format:
Example:
LD @R2, R3
150
N
Z
V
C
–
–
–
–
MSB
0
0
0
Instruction bit pattern : 0000 0100 0010 0011
R2
1 2 3 4 5 6 7 8
R3
0 0 0 0 0 0 0 0
Memory
12345678
8 7 6 5 4 3 2 1
Before execution
0
0
1
0
0
LSB
Rj
Ri
R2
1 2 3 4 5 6 7 8
R3
8 7 6 5 4 3 2 1
Memory
12345678
8 7 6 5 4 3 2 1
After execution