3
3-67 M32R-FPU Software Manual (Rev.1.01)

LDUHLDUH

load/store instruction

Load unsigned halfword

[Mnemonic]
(1) LDUH Rdest,@Rsrc
(2) LDUH Rdest,@(disp16,Rsrc)
[Function]
Load to register from the contents of the memory.
(1) Rdest = *( unsigned short *) Rsrc;
(2) Rdest = *( unsigned short *) ( Rsrc + ( signed short ) disp16 );
[Description]
(1) LDUH zero-extends the halfword data from the memory at the address specified by Rsrc
and loads it into Rdest.
(2) LDUH zero-extends the halfword data in memory at the address specified by Rsrc com-
bined
with the 16-bit displacement, and loads it into Rdest.
The displacement value is sign-extended to 32 bits before the address calculation.
The condition bit (C) is unchanged.
[EIT occurrence]
Address exception (AE)
[Encoding]
LDUH Rdest,@Rsrc
dest1010
dest0010 1011 src
1011 src disp16
LDUH Rdest,@(disp16,Rsrc)
INSTRUCTIONS
3.2 Instruction description