popa

Pop all general-purpose registers (default size)

Pops the general registers that pusha saved, discarding the saved sp; not valid in 64-bit mode.

186 and laterNot available in 64-bit mode

Intel's reference: POPA/POPAD

CFPFAFZFSFDFOF –––––––
  • Changes no flag

Forms

  • popa

It is intended to reverse the operation of PUSHAW, but it ignores the value for SP that was pushed on the stack by PUSHAW.

  • POPAD pops twice as much data, and places the results in EDI, ESI, EBP, nothing (placeholder for ESP), EBX, EDX, ECX and EAX. It reverses the operation of PUSHAD.

POPA is an alias mnemonic for either POPAW or POPAD, depending on the current BITS setting.

Note that the registers are popped in reverse order of their numeric values in opcodes.