IA-32 Assembly Language Reference Manual

Store AH into Flags (sahf)

sahf
Operation

AH -> SF:ZF:xx:AF:xx:PF:xx:CF

Description

Loads flags (sign, zero, indeterminate, auxiliary carry, indeterminate, parity, indeterminate, and carry) with values from the AH register.

Example

Load values from the AH register into the flags word:

sahf