PUSHF
Usage: PUSHF Modifies flags: None
Transfers the Flags Register onto the stack. PUSHF saves a 16 bit value while PUSHFD saves a 32 bit value.
Push Flags Register
PUSHF ; 9C [186]
PUSHFD ; o32 9C [386]
PUSHFW ; o16 9C [186]
PUSHFW pushes a word from the stack and stores it in the bottom 16 bits of the flags register (or the whole flags register, on processors below a 386).
PUSHFD pushes a doubleword and stores it in the entire flags register.
PUSHF is an alias mnemonic for PUSHFD, under 32 Bits mode.
See also POPF ().
Example:
pushf