Div0U (Initial Setting Up For Unsigned Division) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

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 combination 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:
Example:
DIV0U R2
130
N
Z
V
C
MSB
1
0
0
1
R2
0 0 F F F F F F
MDH
0 0 0 0 0 0 0 0
MDL
0 F F F F F F 0
D1D0T
SCR
x x 0
Before execution
0
1
1
1
0
1
LSB
0
1
Ri
R2
0 0 F F F F F F
MDH
0 0 0 0 0 0 0 0
MDL
0 F F F F F F 0
SCR
After execution
D1D0T
0 0 0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents