title: Machine Code (.asm & movsx)
body: <p>I'm looking at these problems in my book and I am trying to figure out what they mean exactly.   </p>
  
  <pre><code>.data 
  one WORD 8002h 
  two WORD 4321h 
  .code 
  mov   edx,21348041h 
  movsx edx,one 
  movsx edx,two
  </code></pre>
  
  <p>^ EDX starts out with a value of 21348041 hex right? Then because of movsx edx adds FFFFF8002 hex? Then edx adds FFFFF4321 hex? Confusing, but I am assuming the book is explaining that movsx converts to signed? </p>