Stereo System User Manual

3
3-95 M32R-FPU Software Manual (Rev.1.01)
REMREM
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]
dest1001 src0010
00000000 00000000
REM Rdest,Rsrc
INSTRUCTIONS
3.2 Instruction description