SETFLAG


7.8.5, ANSI

 

The SETFLAG instruction sets or clears any of the Condition Flags or any one of the function key flags. The SETFLAG instruction does not work with the Pseudo Flag GREATER. The instruction uses the following format:

 

 

[label]

SETFLAG

[NOT] {flag}

 

Where:

label

Optional. A Program Execution Label.

flag

Required. One of the condition or function flags set or cleared.

Flags Affected: EOS, LESS, OVER, ZERO, Function Key

Note the following:

  1. This instruction provides an alternative to using data fields for program switches.

  2. There may only be one currently active function key. If the function key flag currently has a value and the SETFLAG instruction is used, the old value is lost.

  3. Setting 'NOT fkey' clears any function key value.

  4. If there is a currently set TRAP for the given function key value, it is not invoked.

 

 

See Also: Example Code, Flags, Program Control Instructions

 



PL/B Language Reference SELECT STOP and DETACH