DIVXS (W)
DIVXS (DIVide eXtend as 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
0
0
Positive
0
1
Negative
1
0
Negative
1
1
Positive
Dividend
Remainder
Positive
Positive
Positive
Positive
Negative
Negative
Negative
Negative
Quotient
Positive
No sign modification
Negative
Sign of quotient is reversed
Positive
Sign of remainder is reversed
Negative
Signs of quotient and remainder
are both reversed
89
Divide Signed
Sign Modification