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.
LAHF/SAHF Instruction
 Detail Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Transfer between Flags and AH         Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   LAHF                                                 ± ± ± ± ±
            SAHF
 
  See also: FSTSW
 
  Description:
 
     LAHF transfers bits 0-7 of the flags register to AH. SAHF
     transfers AH into bits 0-7 of the flags register. Bits 0-7 include
     the carry, parity, auxiliary carry, zero, and sign flags, but not
     the trap, interrupt, direction, or overflow flags.
                                    -♦-