Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->REMS
REMS Signed Remainder
Compatibility: Starting with 5206e.
Destination/Source -> Destination
|Assembler Syntax:||REMS.L <ea>,Dw:Dx||32/32 -> 32w|
Divides the 32 bit signed operand contained in the Dx register by the 32 bit signed source operand and stores the 32 signed 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 REMS 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||