FLAGRESTORE


7.7, ANSI

 

The FLAGRESTORE instruction (which may be abbreviated as FLAGREST) sets the Condition Flags. The instruction uses the following format:

 

 

[label]

FLAGRESTORE

{flags}

 

Where:

label

Optional. A Program Execution Label.

flags

Required. A previously defined Character String Variable or string Literal containing the new settings for the four Condition Flags.

Flags Affected: EOS, LESS, OVER, ZERO

Note the following:

  1. The FLAGRESTORE instruction sets the flags according to information contained in the variable or literal. The form pointed character controls the EOS flag, the next character controls the ZERO or EQUAL flag, the next character controls the LESS flag and the next character controls the OVER flag.

  2. If the variables logical length is less than four (4), only the first 'n' flags are affected.

  3. The given flag is set if the associated character is a one (1) and is clear (FALSE) if the associated character is a zero (0). The given flag is not affected if the associated character contains any other value.

 

 

See Also: FLAGSAVE, FRESTORE, FSAVE, Program Control Instructions

 



PL/B Language Reference EXCEPTSET FLAGSAVE