228
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
BIN 16-bit multiplication and division operations
*(P), /(P)
■*
• Multiplies BIN 16-bit data designated by (S1) and BIN 16-bit data designated by (S2), and stores the result in the device
designated by (D).
• If (D) is a bit device, designation is made from the lower bits.
K1 Lower 4 bits (b0 to b3)
K4 Lower 16 bits (b0 to b15)
K 32 bits (b0 to b31)
• Values for (S1) and (S2) can be designated between -32768 and 32767 (BIN, 16 bits).
• Judgments whether (S1), (S2), and (D) are positive or negative are made on the basis of the most significant bit (b15 for
(S1), and (S2), for (D) and b31).
(S1): Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BIN 16 bits)
(S2): Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BIN 16 bits)
(D): Head number of the devices where the multiplication/division operation result will be stored (BIN 32 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
(S2)
(D)
•0 Positive
•1 Negative
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
S1
S2
D
S1
S2
D
*, /
, /
*P, / P
indicates an instruction symbol of * .
b0
1234 (BIN)
b15b0
5678 (BIN)
b15 b0
b16 b15
7006652 (BIN)
b31
S1
S2
D
D