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 2005MOVSXDMove with Sign-Extend DoublewordCopies the 32-bit value in a register or memory location (second oper<strong>and</strong>) into a 64-bitregister (first oper<strong>and</strong>), extending the most significant bit of the 32-bit value into allhigher bits of the 64-bit register.This instruction requires the REX prefix 64-bit oper<strong>and</strong> size bit (REX.W) to be set to 1to sign-extend a 32-bit source oper<strong>and</strong> to a 64-bit result. Without the REX oper<strong>and</strong>sizeprefix, the oper<strong>and</strong> size will be 32 bits, the default for 64-bit mode, <strong>and</strong> the sourceis zero-extended into a 64-bit register. With a 16-bit oper<strong>and</strong> size, only 16 bits arecopied, without modifying the upper 48 bits in the destination.This instruction is available only in 64-bit mode. In legacy or compatibility mode thisopcode is interpreted as ARPL.Mnemonic Opcode DescriptionMOVSXD reg64, reg/mem32 63 /rMove the contents of a 32-bit register or memory oper<strong>and</strong> to a64-bit register with sign extension.Related <strong>Instructions</strong>MOVSX, MOVZXrFLAGS AffectedNoneExceptionsException RealVirtual8086 Protected Cause of ExceptionStack, #SS X A memory address was non-canonical.<strong>General</strong> protection,X A memory address was non-canonical.#GPPage fault, #PF X A page fault resulted from the execution of the instruction.Alignment check, #AC X An unaligned memory reference was performed while alignmentchecking was enabled.208 MOVSXD

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

Saved successfully!

Ooh no, something went wrong!