Lduh (Load Half-Word Data In Memory To Register) - Fujitsu FR Family Instruction Manual

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

Advertisement

7.65

LDUH (Load Half-word Data in Memory to Register)

Extends with zeros the half-word data at memory address "(R14 + o8 × 2)", loads to
"Ri".
The value "o8" is a signed calculation.
■ LDUH (Load Half-word Data in Memory to Register)
Assembler format:
LDUH @(R14, disp9), Ri
extu (( R14 + o8 × 2)) → Ri
Operation:
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
b cycle(s)
Instruction format:
Example:
LDUH @(R14, 2), R3
N
Z
V
C
MSB
0
1
0
0
Instruction bit pattern :
0100 0000 0001 0011
R3
x x x x
x x x x
R14
1 2 3 4 5 6 7 8
12345678
Memory
1234567A
4 3 2 1
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
o8
R3
R14
12345678
1234567A
LSB
Ri
0 0 0 0 4 3 2 1
1 2 3 4 5 6 7 8
Memory
4 3 2 1
After execution
161

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents