popf

8086 and later

Pop Flags Register

popf
  • POPFW pops 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).

  • POPFD pops a doubleword and stores it in the entire flags register.

POPF is an alias mnemonic for either POPFW or POPFD, depending on the current BITS setting.

See also PUSHF (PUSHF).

Forms

Every form of popf the assembler accepts.

FormSinceNotes
popf 8086