6-69
INC(P),DEC(P)
1
2
3
4
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))
6.2.16 Incrementing and decrementing 16-bit BIN data
(INC(P),DEC(P))
INC(P),DEC(P)
Function
INC
(1) Adds 1 to the device designated by (16-bit data).
(2) When INC/INCP operation is executed for the device designated by , whose content is
32767, the value 32768 is stored at the device designated by .
DEC
(1) Subtracts 1 from the device designated by (16-bit data).
(2) When DEC/DECP operation is executed for the device designated by , whose content is
32768, the value 32767 is stored at the device designated by .
Operation Error
(1) There are no operation errors associated with the INC(P)/DEC(P) instruction.
: Head number of devices for INC (+1)/DEC ( 1) operation (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
––
Basic
Process
High
performance
Redundant
Universal
Command
Command
P
D
D
INC, DEC
INCP, DECP
indicates an instruction symbol of INC/DEC.
D
D
D
5679 (BIN)
b0
5678 (BIN)
b15
D
b0b15
D
D
D
D
1
5677 (BIN)
b0
5678 (BIN)
b15
D
b0b15
D
D
D