130
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.39 DIV0U (Initial Setting Up for Unsigned Division)
This command is used for unsigned division in which the multiplication/division
register (MDL) contains the dividend and the "Ri" the divisor, with the quotient stored in
the "MDL" register and the remainder in the multiplication/division register (MDH).
The "MDH" and bits "D1" and "D0" are cleared to "0".
To execute unsigned division, the instructions are used in combinations such as DIV0U
and DIV1 x 32
DIV0U (Initial Setting Up for Unsigned Division)
Assembler format: DIV0U Ri
Operation: 0 D0
0 D1
0 MDH
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 1 cycle
Instruction format:
NZVC
––––
MSB LSB
100101110101 Ri