title: Replace a character in a string using assembly code in MASM
body: <p>So my program is very simple. I have a string "Hello World" and I want to replace 'H' with 'A'. So here is my assembly code for MASM.</p>
  
  <pre><code>char* name = "Hello World";
  _asm
  {
  mov eax, name;
  mov ebx, 'A';
  mov [eax], ebx;
  }
  
  printf("%s", name);
  </code></pre>
  
  <p>Visual Studio cannot compile this. It alerts me that this program is not working. I suspect my syntax for mov[eax], ebx might be wrong. All comments are appreciated. Thanks!</p>
  
  <p>Here is the image of the alert: <a href="https://www.dropbox.com/s/e5ok96pj0mxi6sa/test%20program%20not%20working.PNG" rel="nofollow">https://www.dropbox.com/s/e5ok96pj0mxi6sa/test%20program%20not%20working.PNG</a></p>