title: Setting value stored at address using x86 ASM
body: <p>I am trying to get my head around some inline ASM but for some reason this isn't behaving as I would have expected. Why isn't this setting the value of x equal to 62?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int x = 525;
      int* y = &amp;x;
  
      _asm
      {
          mov eax, 62
          mov [y], eax
      }
  
      printf("%i", x);
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>The code results in 525 being output. I expected it to be 62.</p>