# `popaw`

[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/popaw

**Pop all general-purpose registers, 16-bit**

Category: Stack

Pops eight 16-bit words into di, si, bp, bx, dx, cx and ax, discarding the saved sp.

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

- `popaw`

## 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.
