IA-32 Assembly Language Reference Manual

Push All General Registers (pusha)

pusha{wl}
Operation

SP -> r16

SP -> r32

Description

The 16-bit or 32-bit general registers are saved by pusha and pushad, respectively. The stack pointer is decremented by 16 by pusha to hold the eight word values. The stack pointer is decremented by 32 by pushad to hold the eight doubleword values. The registers are pushed onto the stack in the order received; the stack bytes appear in reverse order. DI or EDI is the last stack pushed.

Example
pushal