# `popa`

[x86-64 Documentation](https://asm-editor.specy.app/documentation/x86.md) › [Instructions](https://asm-editor.specy.app/documentation/x86/instruction.md)

Web page: https://asm-editor.specy.app/documentation/x86/instruction/popa

**Pop all general-purpose registers (default size)**

Category: Stack

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

186 and later · Not available in 64-bit mode

[Intel's reference: POPA/POPAD](https://intel.github.io/SDM/instruction/POPA-POPAD.html)

## Flags

| Flag | Effect |
| --- | --- |
| CF | not changed |
| PF | not changed |
| AF | not changed |
| ZF | not changed |
| SF | not changed |
| DF | not changed |
| OF | not changed |

## Forms

- `popa`

## Description

It is intended to reverse the operation of [`PUSHAW`](https://asm-editor.specy.app/documentation/x86/instruction/pushaw.md), 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.
