Assembly Language Help (alang.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 Manipulation Instructions
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Select an instruction for more information.
 
     Instruction     Description
 
     CLC             Clear carry flag
     CLD             Clear direction flag
     CLI             Clear interrupt flag (disable maskable
                     interrupts)
     CMC             Complement carry flag
     STC             Set carry flag
     STD             Set direction flag
     STI             Set interrupt flag (recognize interrupts again)
     POPF            Pop flags (pop value at top of stack into flags
                     register)
     PUSHF           Push flags (push value of entire flags register
                     onto stack)
     LAHF            Load flags into AH register
     SAHF            Store AH into flags (does not include all flags)
 
     See also: C-style comparison operators
                                    -♦-