Renesas M32R-FPU User Manual

Page 101

Advertising
background image

3

3-63

M32R-FPU Software Manual (Rev.1.01)

LDB

LDB

load/store instruction

Load byte

[Mnemonic]

(1)

LDB Rdest,@Rsrc

(2)

LDB Rdest,@(disp16,Rsrc)

[Function]

Load to register from the contents of the memory.

(1) Rdest = *( signed char *) Rsrc;

(2) Rdest = *( signed char *) ( Rsrc + ( signed short ) disp16 );

[Description]

(1) LDB sign-extends the byte data of the memory at the address specified by Rsrc and loads

it into Rdest.

(2) LDB sign-extends the byte data of the memory at the address specified by Rsrc combined

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]

None

[Encoding]

dest

1010

dest

0010

1000

src

1000

src

disp16

LDB Rdest,@Rsrc

LDB Rdest,@(disp16,Rsrc)

INSTRUCTIONS

3.2 Instruction description

Advertising