Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->REMU
REMU Unsigned Remainder
Compatibility: Starting with 5206e.
Destination/Source -> Destination
|Assembler Syntax:||REMU.L <ea>,Dw:Dx||32/32 -> 32w|
Divides the 32 bit unsigned operand contained in the Dx register by the 32 bit unsigned source operand and stores the 32 unsigned remainder in the destination register Dw. Dw and Dx, must be different registers.
Division by zero causes and exception (vector 5, offset $014) with the exception PC pointing to the faulting REMU instruction.
If an overflow is detected, the operands are unaffected.
N Cleared if overflow detected, else set if quotient is negative and cleared if quotient is positive
Z Cleared if overflow detected, else set if quotient is zero and cleared if quotient is nonzero
V Set if overflow, else cleared
C Always cleared
X Not affected
|Allowable Addressing Modes||