FLAGSAVE


7.7, ANSI

 

The FLAGSAVE instruction stores the current status of the four Condition Flags: , EQUAL (or ZERO), LESS and OVER. The instruction uses the following format:

 

 

[label]

FLAGSAVE

{flags}

 

Where:

label

Optional. A Program Execution Label.

flags

Required. A previously defined Character String Variable that receives the current settings for the four Condition Flags.

Flags Affected: NONE

Note the following:

  1. The FLAGSAVE instruction saves the flags in the specified variable. The first character receives the EOS flag, the second character receives the ZERO or EQUAL flag, the third character receives the LESS flag and the fourth character receives the OVER flag.

  2. The form pointer of {flags} is set to one (1). The length pointer is set to four (4) or the physical length if shorter than four.

  3. No flags are modified by this instruction. If the variable is too short, no indication is given that all of the flag information has not been saved.

 

 

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

 



PL/B Language Reference FLAGRESTORE FOR