2 Instructions
2-184
CP1E CPU Unit Instructions Reference Manual(W483)
Function
/B
/B(434) divides the BCD content of Dd by those of Dr and outputs the quotient to R and the remainder
to R+1.
/BL
/BL(435) divides BCD values in Dd and Dd+1 by those in Dr and Dr+1 and outputs the quotient to R,
R+1 and the remainder to R+2, R+3.
Sample program
÷
R +1 R
(BCD)
(BCD)
(BCD)
Dd
Dr
Remainder Quotient
÷
Dd + 1
Dr + 1
R + 1 RR + 3
R + 2
(BCD)
(BCD)
(BCD)
Dd
Dr
Remainder
Quotient
When CIO 0.00 is ON in the following example, D100 will be
divided by D110 as 4-digit BCD values and the quotient will
be output to D120 and the remainder to D121.
When CIO 0.00 is ON in the following example, D101 and
D100 will be divided by D111 and D110 as 8-digit BCD values
and the quotient will be output to D121 and D120 and the
remainder to D123 and D122.
/B
D100
D110
D120
0.00
/BL
D100
D110
D120
0.00