# `pusha`

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

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

Category: Stack

Pushes ax, cx, dx, bx, sp, bp, si and di onto the stack in turn, at the mode's default operand size.

186 and later · Not available in 64-bit mode

[Intel's reference: PUSHA/PUSHAD](https://intel.github.io/SDM/instruction/PUSHA-PUSHAD.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

- `pusha`

## Description

`PUSHAD` pushes, in succession, `EAX`, `ECX`, `EDX`,
`EBX`, `ESP`, `EBP`, `ESI` and `EDI` on the stack,
decrementing the stack pointer by a total of 32.

In both cases, the value of `SP` or `ESP` pushed is its
*original* value, as it had before the instruction was executed.

`PUSHA` is an alias mnemonic for either `PUSHAW` or `PUSHAD`,
depending on the current `BITS` setting.

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

See also [`POPA`](https://asm-editor.specy.app/documentation/x86/instruction/popa.md).
