DECR


7.8.2

 

The DECR instruction decrements a variable by one. The instruction uses the following format:

 

 

[label]

DECR

{source}

 

Where:

label

Optional. A Program Execution Label.

source

Required. A Numeric Variable that is decremented.

Flags Affected: LESS, OVER, ZERO

Note the following:

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

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

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

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

 

 

See Also: Example Code, INCR, Mathematical Instructions

 



PL/B Language Reference COSH DIVIDE