lahf
SF:ZF:xx:AF:xx:PF:xx:CF -> AH
Transfers the low byte of the flags word to the AH register. The bits (lsb to msb) are: sign, zero, indeterminate, auxiliary carry, indeterminate, parity, indeterminate, and carry.
Transfer the flags word into the AH register:
lahf