popfw

8086 and later

Pop Flags Register

popfw
  • 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).

No example here: this instruction either stops the program, or belongs to a mode this emulator does not run.

Forms

Every form of popfw the assembler accepts, from NASM's own instruction table. The second column is the processor that introduced the form; a badge marks a form that needs an extension, that is lockable, or that long mode dropped.

FormSinceNotes
popfw 8086