movsxd

x86-64 and later

Move Doubleword to Quadword with Sign-Extension

movsxd rax, eax | movsxd reg16, r/m32 | movsxd reg32, r/m32 | movsxd reg64, r/m32

Copies a 32 bit source into a 64 bit register, sign extending it. This is the instruction to reach for when a signed 32 bit value has to become a 64 bit one, because the ordinary mov eax, ... zero extends instead: writing any 32 bit register clears the top half of its 64 bit name.

Loading...

Forms

Every form of movsxd the assembler accepts.

FormSinceNotes
movsxd rax, eaxx86-64long
movsxd reg16, r/m32x86-64long
movsxd reg32, r/m32x86-64long
movsxd reg64, r/m32x86-64long