162
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.66 LDUB (Load Byte Data in Memory to Register)
Extends with zeros the byte data at memory address "Rj", loads to "Ri".
■ LDUB (Load Byte Data in Memory to Register)
Assembler format: LDUB @Rj, Ri
Operation: extu ((Rj)) → Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: b cycle(s)
Instruction format:
Example: LDUB @R2, R3
NZVC
––––
MSB LSB
00000110 Rj Ri
R2
12345678
1234 5678
xxxx xxxx
R2
R3R3
21
0000 0021
1234 5678
12345678
21
Memory Memory
Before execution After execution
Instruction bit pattern : 0000 0110 0010 0011