6-44
DB*(P),DB/(P)
6.2.8 BCD 8-digit multiplication and division operations
(DB*(P),DB/(P))
DB*(P),DB/(P)
Function
DB*
(1) Multiplies the BCD 8-digit data designated by and the BCD 8-digit data designated by ,
and stores the product at the device designated by .
(2) If has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the
product, and the higher 8 digits (upper 32 bits) cannot be designated.
K1 ....Lower 1 digit (b0 to 3), K4 ....Lower 4 digits (b0 to 15), K8.....Lower 8 digits (b0 to 31)
(3) 0 to 99999999 (BCD 8 digits) can be assigned to and .
DB/
(1) Divides 8-digit BCD data designated by and 8-digit BCD data designated by , and
stores the result in the device designated by .
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
(BCD 8 digits)
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
(BCD 8 digits)
:
Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
––
–– ––
Basic
Process
High
performance
Redundant
Universal
Command
Command
P
DB , DB/
*
DB P, DB/P
S1 S2
D
S1 S2
D
DB ,DB/indicates an instruction symbol of * .
*
S1
S2
D
S1
S2
D
S1
S2
D
9999 9999 9999 9999
+1 +1
9999 9998 0000 0001
+1 +2 +3
D
D D
D
S1
S1 S2 S2
D
S1
S2
S1
S2
D
6578
1
9
2
3
1
0
2
3 5
4
6 7
/
+1
+1
0000 00 4 5 1023 6308
Digits exceeding the designated number of digits
are assumed to be 0
(Lower 4 digits)(Upper 4 digits)(Lower 4 digits)(Upper 4 digits)
+1 +3 +2
Remainder
Quotient
S1 S2
D
S1 S2
D D D