FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual
Page 153
Advertising

129
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
Example:
DIV0S R2
Example:
Actual use MDL ÷ R2 = MDL (
q
uotient) ... MDH (remainder), signed calculation
MDH
MDL
D1 D0 T
S
CR
S
CR
x x 0
D1 D0 T
1 1 0
R2
0 F F F F F F F
MDH
MDL
R2
F F F F F F F 0
F F F F F F F F
F F F F F F F 0
0 0 0 0
0 0 0 0
0 F F F F F F F
Before exec
u
tion
After exec
u
tion
In
s
tr
u
ction
b
it p
a
ttern : 1001 0111 0100 0010
DIV0S
R2
DIV1
R2
32 DIV1s are arranged
DIV1
R2
..
.
..
.
DIV1
R2
DIV2
R2
DIV3
DIV4S
MDH
MDL
D1 D0 T
S
CR
S
CR
x x 0
D1 D0 T
1 1 0
R2
0 1 2
3
4 5 6 7
MDH
MDL
R2
F F F F F F F F
F F F F F F F F
F E D C B A 9
8
x x x x
x x x x
0 1 2
3
4 5 6 7
Before exec
u
tion
After exec
u
tion
Advertising