Renesas M32R-FPU User Manual

Page of 192
3
3-61
M32R-FPU Software Manual (Rev.1.01)
LD
LD
load/store instruction
Load
[Mnemonic]
(1)
 
 LD  Rdest,@Rsrc
(2)
 
 LD  Rdest,@Rsrc+
(3)
 
 LD  Rdest,@(disp16,Rsrc)
[Function]
Load to register from the contents of the memory.
(1)  Rdest = *( int *) Rsrc;
(2)  Rdest = *( int *) Rsrc,  Rsrc += 4;
(3)  Rdest = *( int *) ( Rsrc + ( signed short ) disp16 );
[Description]
(1)  The contents of the memory at the address specified by Rsrc are loaded into Rdest.
(2)  The contents of the memory at the address specified by Rsrc are loaded into Rdest.
       Rsrc is post incremented by 4.
(3)  The contents of the memory at the address specified by Rsrc combined with the 16-
       bit displacement are loaded 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]
dest
0010
LD  Rdest,@Rsrc
dest
1010
dest
0010
LD  Rdest,@Rsrc+
LD  Rdest,@(disp16,Rsrc)
1100
src
1110
src
1100
src
disp16
INSTRUCTIONS
3.2 Instruction description