.pg .x flag .lt ------------------------------------------------------------------------ FLAG name [INIT=initial] ------------------------------------------------------------------------ .el .b 3 The FLAG macro will geneate a variable and define bit offsets into this variable to specify boolean flags. .b If ^&initial\& is not specified, 0 is assumed. .b .tp 5 For example: .b .lt flag example .el .b will generate the following code: .b .lt example: .byte 0 present = 128 ; bit 8 value = 8 ; bit 4 .el .b .tp 5 In addition, these boolean flags can be set or cleared by the SET and CLEAR macros. Plus, each flag bit can be tested by specifing the name of the flag appended to the bit name in an IF statement. .b For example, using the FLAG example above: .b .lt if then statements-1 end .el .b .tp 5 is equivalent to: .b .lt if then statements-1 end .el .b See also SET and CLEAR.