INCR
7.8.2
The INCR instruction increments a variable by one. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
source
Required. A Numeric Variable that is incremented.
Flags Affected: LESS, OVER, ZERO
Note the following:
The {source} variable is incremented by one (1).
If the result exceeds the {source} variable, the OVER flag is set.
If the result is zero, the ZERO flag is set.
If the result is negative, the LESS flag is set.
See Also: Example Code, DECR, Mathematical Instructions
![]() |