title: How to increment an array in x86 assembly?
body: <p>How would you increment an array using x86 assembly within a for loop. If the loop (made using c++) looked like:</p>
  
  <pre><code>for (int i = 0; i &lt; limit; i++)
  </code></pre>
  
  <p>A value from an array is put in a register then the altered value is placed in a separate array. How would I increment each array in x86 assembly (I know c++ is simpler but it is practice work), so that each time the loop iterates the value used and the value placed into the arrays is one higher than the previous time? The details of what occur in the loop aside from the array manipulation are unimportant as I would like to know how this can be done in general, not a specific situation? </p>