beautypg.com

Div0u (initial setting up for unsigned division) – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 154

background image

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:

N

Z

V

C

MSB

LSB

1

0

0

1

0

1

1

1

0

1

0

1

Ri