title: Assign value to register
body: <p>i'm having some problems rewriting some ASM code.
  Atm the following code</p>
  
  <pre><code>FLD DWORD PTR SS:[ESP+20]
  FDIV DWORD PTR SS:[ESP+28]
  FSTP QWORD PTR SS:[ESP]
  </code></pre>
  
  <p>Where [ESP+20] contains a value from 1 to 10, and [ESP+28] is 30.</p>
  
  <p>Now, i'm trying to rewrite this code, to skip the division and just assign a static value, but it does not seems to work for some reason, it just outputs "0". I'm doing the following:</p>
  
  <pre><code>MOV DWORD PTR SS:[ESP+28], 0A
  FSTP QWORD PTR SS:[ESP]
  </code></pre>
  
  <p>I'm still pretty new at this assembly stuff, so i'm probably doing something wrong. 
  Anyone here can point me in the right direction? I'd really appreciate it!</p>
  
  <p>Thanks in advance</p>