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:
|
|
|
|
|
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:
This instruction provides an alternative to using data fields for program switches.
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.
Setting 'NOT fkey' clears any function key value.
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
![]() |