6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
265
6
16-bit BIN data increment, 16-bit BIN data decrement
INC(P), DEC(P)
■INC
• Adds 1 to the device designated by (D) (16-bit data).
• When INC/INCP operation is executed for the device designated by (D), whose content is 32767, the value -32768 is
stored at the device designated by (D).
■DEC
• Subtracts 1 from the device designated by (D) (16-bit data).
• When DEC/DECP operation is executed for the device designated by (D), whose content is -32768, the value 32767 is
stored at the device designated by (D).
• There is no operation error in the INC(P) or DEC(P) instruction.
(D): Head number of devices for INC (+1)/DEC (-1) operation (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
Bit Word Bit Word
(D)
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
D
D
INC, DEC
INCP, DECP
indicates an instruction symbol of INC/DEC.
5679 (BIN)
b0
5678 (BIN)
b15
D
b0b15
D
1
5677 (BIN)
b0
5678 (BIN)
b15
D
b0b15
D