DIVXS (W)
DIVXS (DIVide eXtend as Signed)
Divide Signed
The preceding two examples flag the status of the divisor and dividend in the UI and U bits in the
CCR, and modify the sign of the quotient and remainder in the unsigned division result of the
DIVXU instruction as shown next.
UI
U
Divisor
Dividend
Remainder
Quotient
Sign Modification
0
0
Positive
Positive
Positive
Positive
No sign modification
0
1
Negative
Positive
Positive
Negative
Sign of quotient is reversed
1
0
Negative
Negative
Negative
Positive
Sign of remainder is reversed
1
1
Positive
Negative
Negative
Negative
Signs of quotient and remainder
are both reversed
89