MOVSX           Move With Sign-Extend                Flags: Not altered

MOVSX destination,source CPU: 386+

Logic destination ← sign-extend(source)

MOVSX extends the sign of an 8-bit value to a 16-bit value, or an
8-bit or 16-bit value to a 32-bit value.


Opcode Format
0F BE /r MOVSX r16,r/m8
0F BE /r MOVSX r32,r/m8
0F BF /r MOVSX r32,r/m16


Length and timing
Operands Bytes 8088 186 286 386 486 Pentium
reg, reg 3 3 3 3 NP
reg, mem 3+d(0,1,2,4) 6 3 3 NP