Div4S (Correction Answer For Signed Division) - Fujitsu FR Family Instruction Manual

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

Advertisement

7.43

DIV4S (Correction Answer for Signed Division)

This instruction is used in signed division. It should be used in combinations such as
DIV0S, DIV1 x 32, DIV2, DIV3 and DIV4S.
■ DIV4S (Correction Answer for Signed Division)
Assembler format:
DIV4S
Operation:
if (D1 = = 1) {
}
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
1 cycle
Instruction format:
Example:
DIV4S
0 – MDL → MDL
N
Z
V
C
MSB
1
0
0
1
Instruction bit pattern : 1001 1111 0111 0000
R2
0 0 F F F F F F
MDH
0 0 0 0
0 0 0 0
MDL
0 0 0 0 0 0 0 F
D1 D0 T
SCR
1 1 0
N Z V C
CCR
0 0 0 0
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
1
1
1
1
0
1
LSB
1
1
0
0
0
0
R2
0 0 F F F F F F
MDH
0 0 0 0 0 0 0 0
MDL
F F F F F F F 1
D1 D0 T
SCR
N Z V C
CCR
0 0 0 0
After execution
1 1 0
137

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents