INCR


7.8.2

 

The INCR instruction increments a variable by one. The instruction uses the following format:

 

 

[label]

INCR

{source}

 

Where:

label

Optional. A Program Execution Label.

source

Required. A Numeric Variable that is incremented.

Flags Affected: LESS, OVER, ZERO

Note the following:

  1. The {source} variable is incremented by one (1).

  2. If the result exceeds the {source} variable, the OVER flag is set.

  3. If the result is zero, the ZERO flag is set.

  4. If the result is negative, the LESS flag is set.

 

 

See Also: Example Code, DECR, Mathematical Instructions

 



PL/B Language Reference EXP LOG