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.
PUSHF/POPF Instructions
 Detail Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Push or Pop Flags                     Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   PUSHF                                        ± ± ± ± ± ± ± ± ±
            PUSHFD
            POPF
            POPFD
 
  See also: PUSH, POP, LAHF
 
  Description:
 
     PUSHF pushes the flags register onto the stack. POPF pops the
     value on the top of the stack into the flags register.
 
     PUSHF and POPF always work on the 16-bit flags register. PUSHFD
     and POPFD work on the 32-bit flags register (80386/486 only).
                                    -♦-