6.8.7 INC - W & DEC - W
Input/output Operand
Data type
IN
VW, IW, QW, MW, SW, SMW, AC, AIW, LW, T, C,constant, *VD, *LD, *AC Integer
OUT
VW, IW, QW, MW, SW, SMW, LW, AC, T, C, *VD, *LD, *AC
Integer
INC - W: IN + 1 = OUT
Both input and output are 16
bits integers.
DEC - W: IN - 1 = OUT
Both input and output are 16
bits integers.
The two instructions operations take with symbols
(16#7FFF > 16#8000).
IN + 1 = OUT
IN - 1 = OUT
error conditions:
0006
Indirect address
SM1.1
overflow
Special memory bit:
SM1.0
Zero result
SM1.1
overflow
SM1.2
Negative result
Example:
139
Made with FlippingBook - Online magazine maker