Renesas M32R-FPU User Manual

Page 133

Advertising
background image

3

3-95

M32R-FPU Software Manual (Rev.1.01)

REM

REM

multiply and divide instruction

Remainder

[Mnemonic]

REM Rdest,Rsrc

[Function]

Signed remainder

Rdest = ( signed ) Rdest % ( signed ) Rsrc ;

[Description]

REM divides Rdest by Rsrc and puts the quotient in Rdest. The operands are treated as

signed 32-bit values.

The quotient is rounded toward zero and the quotient takes the same sign as the dividend.

The condition bit (C) is unchanged.

When Rsrc is zero, Rdest is unchanged.

[EIT occurrence]

None

[Encoding]

dest

1001

src

0010

0000

0000

0000

0000

REM Rdest,Rsrc

INSTRUCTIONS

3.2 Instruction description

Advertising