6-42
B*(P),B/(P)
6.2.7 BCD 4-digit multiplication and division operations
(B*(P),B/(P))
B*(P),B/(P)
Function
B*
(1) Multiplies BCD data designated by and BCD data designated by , and stores the result
in the device designated by .
(2) 0 to 9999 (BCD 4 digits) can be assigned to and .
B/
(1) Divides BCD data designated by and BCD data designated by , and stores the result in
the device designated by .
(2) Uses 32 bits to store the result of the division as quotient and remainder
Quotient (BCD 4 digits) :Stored at the lower 16 bits.
Remainder (BCD 4 digits) :Stored at the upper 16 bits.
(3) If has been designated as a bit device, the remainder of the operation will not be stored.
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
(BCD 4 digits)
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
(BCD 4 digits)
:
Head number of the devices where the multiplication/division operation result will be stored (BCD 8 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
B*
*
, B/
P, B/PB
S1 S2
D
S1 S2
D
B ,B/indicates an instruction symbol of * .
S1
S2
D
S1
S2
D
S1
S2
D
4
09780766578
(Upper 4 digits)
+1
93
2
8
(Lower 4 digits)
S1 S2
D D
S1
S2
S1
S2
D
000680766
5
78
4022
+1 (Remainder)(Quotient)
S1 S2
D D
Digits exceeding the designated number of digits are
assumed to be 0.
/
D