Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>movsx move with sign-extend (386) flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MOVSX             Move With Sign-Extend (386)        Flags: O D I T S Z A P C

MOVSX destination, source

           Logic:        destination .  sign extend(source)

     This instruction copies a source operand to a destination operand and
     extends its sign. This is particularly useful to preserve signs when
     copying from 8-bit register to a 16-bit one, or a 16-bit register to a
     32-bit one.

     MOVSX is only valid in the 386.

  --------------------------------------------------------------------------
   Operands                   Clocks   Transfers  Bytes  Example
   MOVSX register, register   3 (386)   1 or 2      3    MOVSX EAX,CX
   MOVSX register, memory     6 (386)   1 or 2      5    MOVSX EAX,MEMLOC
  --------------------------------------------------------------------------

See Also: MOVZX

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson