LAHF
Usage: LAHF Modifies flags: None
Copies bits 0-7 of the flags register into AH. This includes flags AF, CF, PF, SF and ZF other bits are undefined.
Load AH from Flags
LAHF ; 9F [8086]
LAHF sets the AH register according to the contents of the low byte of the flags word.
The operation of LAHF is:
AH <-- SF:ZF:0:AF:0:PF:1:CF
See also SAHF.
Example:
lahf