Fujitsu CM71-00101-5E User Manual

Page of 314
137
CHAPTER 7  DETAILED EXECUTION INSTRUCTIONS
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) {
0 – MDL 
 MDL
}
Flag change:    
N, Z, V, and C: Unchanged
Execution cycles:  
1 cycle
Instruction format:  
Example:
DIV4S
N
Z
V
C
MSB
LSB
1
0
0
1
1
1
1
1
0
1
1
1
0
0
0
0
MDH
 
MDL
 
 
 
D1 D0 T
S
CR
S
CR
D1 D0 T
1 1 0
1 1 0
R2
0 0 F F F F F F
MDH
 
MDL
 
 
R2
F F F F F F F 1
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 F
0 0 0 0
0 0 0 0
0 0 F F F F F F
N Z V C
CCR
CCR
N Z V C
0 0 0 0
0 0 0 0
Before exec
u
tion
After exec
u
tion
In
s
tr
u
ction 
b
it p
a
ttern : 1001 1111 0111 0000