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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24594 Rev. 3.10 February 2005 AMD64 TechnologyMOVSXMove with Sign-ExtensionCopies the value in a register or memory location (second oper<strong>and</strong>) into a register(first oper<strong>and</strong>), extending the most significant bit of an 8-bit or 16-bit value into allhigher bits in a 16-bit, 32-bit, or 64-bit register.Mnemonic Opcode DescriptionMOVSX reg16, reg/mem8 0F BE /rMOVSX reg32, reg/mem8 0F BE /rMOVSX reg64, reg/mem8 0F BE /rMOVSX reg32, reg/mem16 0F BF /rMOVSX reg64, reg/mem16 0F BF /rMove the contents of an 8-bit register or memory location to a16-bit register with sign extension.Move the contents of an 8-bit register or memory location to a32-bit register with sign extension.Move the contents of an 8-bit register or memory location to a64-bit register with sign extension.Move the contents of an 16-bit register or memory location to a32-bit register with sign extension.Move the contents of an 16-bit register or memory location to a64-bit register with sign extension.Related <strong>Instructions</strong>MOVSXD, MOVZXrFLAGS AffectedNoneExceptionsException RealVirtual8086 Protected Cause of ExceptionStack, #SS X X X A memory address exceeded the stack segment limit or was noncanonical.<strong>General</strong> protection,#GPX X XA memory address exceeded a data segment limit or was non-canonical.X A null data segment was used to reference memory.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.MOVSX 207

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

Saved successfully!

Ooh no, something went wrong!