IA-32 Assembly Language Reference Manual

Pop Stack into Flag (popf)

popf{wl}
Operation

stack -> flags register

Description

Pops the word or long from the top of the stack and stores the value in the flags register. Stores a word in FLAGS; stores a long in EFLAGS.

Example

Pops the word from the top of the stack and stores it in the flags register:

popfw

Pops the long from the top of the stack and stores it in the eflags register:

popfl