
Chapter 5. Application instructions
5-48
5.8.3
MUL, MULP, DMUL, DMULP
MUL
(Binary multiply)
FUN(120) MUL
FUN(122) DMUL
FUN(121) MULP
FUN(123) DMULP
Applicable
CPU
All CPUs
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O O O O O O O
O
O
O
O O O O O
O
O
O
O
O
MUL(P)
DMUL(P)
O O O O*
O O
O O
7/9/11
O
O
* Available only when do not use computer link module or data link module
1) Functions
-
MUL(P) : Performs the multiplication of BIN data specified as [ S1 ] and the BIN data specified as
[ S2 ], and stores the multiplication result into the device specified as [ D+1, D ].
-
DMUL(P) : Performs the multiplication of BIN data specified as [ S1+1, S ] and the BIN data
specified as [ S2+1, S2 ], and stores the multiplication result into the device specified as [ D+3, D+2,
D+1, D ]
-
If the multiplication result is zero, the zero flag will be set.
-
If indirect address specified by #D format is out of device range, the operation error occurs and the
error flag (F110) is set.
-
Execution conditions
Operand setting
MUL
MULP
DMUL
DMULP
S1
S1
S2
S2
S1
S2
D
D
D
The device storing
multiplicand
The device at which the
multiplication result is
stored
S1
S2
D
The device storing multiplier
Input condition
MUL, DMUL
MULP, DMULP
Executed only once
Executed only once
Executed per scan
Executed per scan