
B–61863E/15
5. FUNCTIONAL INSTRUCTIONS
PMC SEQUENCE PROGRAM
261
Divides BCD two–or four–digit data. Remainders are discarded.
Fig.5.39.2 shows the expression format and Table 5.39.2 shows the
coding format.
DIV
(SUB 22)
RST
(1)
f
ffff.f
ACT
ffff.f
W1
fff.f
(2)
ffff
(3)
ffff
Control conditions
Instruction
Data format of divider
Dividend address
Divisor (address or constant)
Error output
BYT
ffff.f
(2)
(1)
(0)
Quotient output address
(4)
ffff
Fig. 5.39.2 DIV instruction format
Table 5.39.2 DIV instruction coding
Coding sheet Memory status of control conditions
Step
Number
Instruc-
tion
Address
No.
Bit No. Remarks ST3 ST2 ST1 ST0
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 22 DIV instruction
5 (PRM) ffff Data format of divider
6 (PRM) ffff Dividend address
7 (PRM) ffff Divider (address)
8 (PRM) ffff Quatient output address
9 WRT fff . f Error output W1
5.39
DIV (DIVISION)
5.39.1
Function
5.39.2
Format