13.07.2015 Views

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AMD64 Technology 24594 Rev. 3.10 February 2005POPAxPOPADPOP All GPRsPops words or doublewords from the stack into the general-purpose registers in thefollowing order: eDI, eSI, eBP, eSP (image is popped <strong>and</strong> discarded), eBX, eDX, eCX,<strong>and</strong> eAX. The instruction increments the stack pointer by 16 or 32, depending on theoper<strong>and</strong> size.Using the POPA or POPAD instructions in 64-bit mode generates an invalid-opcodeexception.Mnemonic Opcode DescriptionPOPA 61POPAD 61Pop the DI, SI, BP, SP, BX, DX, CX, <strong>and</strong> AX registers.(Invalid in 64-bit mode.)Pop the EDI, ESI, EBP, ESP, EBX, EDX, ECX, <strong>and</strong> EAX registers.(Invalid in 64-bit mode.)Related <strong>Instructions</strong>PUSHA, PUSHADrFLAGS AffectedNoneExceptionsException RealVirtual8086 Protected Cause of ExceptionInvalid opcode (#UD) X This instruction was executed in 64-bit mode.Stack, #SS X X X A memory address exceeded the stack segment limit.Page fault, #PF X X A page fault resulted from the execution of the instruction.Alignment check, #AC X X An unaligned memory reference was performed while alignmentchecking was enabled.226 POPAx

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!