Fujitsu CM71-00101-5E User Manual

Page of 314
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
N
Z
V
C
MSB
LSB
0
0
0
0
0
1
0
1
Rj
Ri
R2
 
12345678
 
 
 
1 2 3 4
5 6 7 8
x x x x
x x x x
R2
R3
R3
 
 
 
 
4 3 2 1
 
 
 
0 0 0 0
4 3 2 1
1 2 3 4
5 6 7 8
Memory
12345678
 
 
 
 
4 3 2 1
Memory
Before execution
After execution
Instruction bit pattern : 0000 0101 0010 0011