title: Change an array's value in x86 assembly (embedded in C++)
body: <p>I am messing around with assembly for the first time, and can't seem to change the index values of an array.  Here's the method I am working on</p>
  
  <pre><code>int ascending_sort( char arrayOfLetters[], int arraySize )
   {
     char temp;
  
  __asm
      {
  
     //???
        }
  }
  </code></pre>
  
  <p>And these are what I tried</p>
  
  <pre><code>mov temp, 'X'
  mov al, temp
  mov arrayOfLetters[0], al
  </code></pre>
  
  <p>And this gave me an error C2415: improper operand type</p>
  
  <p>so I tried</p>
  
  <pre><code>mov temp, 'X'
  mov al, temp
  mov BYTE PTR arrayOfLetters[0], al
  </code></pre>
  
  <p>This complied, but it didn't change the array...</p>