Basic instruction (16-bit)
Function
+
• Executes addition of the BIN data specified with
device specified with
• Executes addition of the BIN data specified with
D1
with
.
• -32768 to 32767 (BIN 16-bit) can be specified in
• Positive/negative judgment of the
(0: positive, 1: negative)
• The carry flag does not turn ON for the 0-bit underflow. The carry flag does not turn ON for the 15th bit overflow. (There is
no carry flag)
Function
-
• Executes subtraction of the BIN data specified with
in the device specified with
• Executes subtraction of the BIN data specified with
D1
with
.
• -32768 to 32767 (BIN 16-bit) can be specified in
• Positive/negative judgment of the
(0: Positive, 1: negative)
• The carry flag does not turn ON for the 0-bit underflow. The carry flag does not turn on for the 15th bit overflow.
(There is no carry flag)
146
Sequence program
D
.
S
S1 S2
,
,
and
D
.
S
S1 S2
,
,
and
D
and BIN data specified with
S1
and BIN data specified with
D
S1 S2
S
,
,
or
.
D
data is performed by the most significant bit (b15).
D
and BIN data specified with
S1
and BIN data specified with
S
S1 S2
D
,
,
or
.
D
data is performed by the most significant bit (b15).
S
, and stores the addition results in the
S2
, and stores it in the device specified
S
, and stores the subtraction results
S2
, and stores it in the device specified