Chapter 7 Second Development PlatformVP3000
323
X0
DIV16
D0 D10 D20
D0 / D10 = D20 K103 / K5 = K20, the remainder is K3
D20 = K20 (the remainder is left out.)
Example 2
When X0 = ON, the dividend K81,000 in (D1, D0) is divided by the divisor K40,000 in (D11,
D10), and the quotient is stored in (D21, D20). ON / OFF of the highest bit indicates the positive
/ negative status of the result value.
X0
DIV32
D0 D10 D20
(D1, D0) / (D11, D10) = (D21, D20) K81,000 / K40,000 = K2, the remainder is K1,000
(D21, D20) = K2 (the remainder is left out.)