qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Flag Register Masks
  Dos Unit Contents Index                                   Back
 
  CONST
      { bit masks for Flags register }
      FCarry     = $0001;    FParity   = $0004;
      FAuxiliary = $0010;    FZero     = $0040;
      FSign      = $0080;    FOverflow = $0800;
 
  Unit:     Dos
 
  Context:  Intr, MsDos
 
  Description
 
    The flag bit constants are used for testing individual bits in the
    Flags register after a call to the Intr or MsDos procedure. Use the
    Registers record type, defined in the Dos unit, and the AND
    operator to compare a bit with one of these masks:
 
       IF (registers_variable.Flags AND FCarry) <> 0 THEN . . .