159
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.63 LDUH (Load Half-word Data in Memory to Register)
Extends with zeros the half-word data at memory address "Rj", loads to "Ri".
■ LDUH (Load Half-word Data in Memory to Register)
Assembler format: LDUH @Rj, Ri
Operation: extu (( Rj)) → Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: b cycle(s)
Instruction format:
Example: LDUH @R2, R3
NZVC
––––
MSB LSB
00000101 Rj Ri
R2
12345678
1234 5678
xxxx xxxx
R2
R3R3
4321
0000 4321
1234 5678
Memory
12345678
4321
Memory
Before execution After execution
Instruction bit pattern : 0000 0101 0010 0011