title: Copying the contents of one array to another in assembly
body: <p>I want to create 2 arrays, both size 5, and fill up the first one. Then I want to fill up the blank array with elements from the other one, but in reverse order. <strong>The only check is I cannot use loops for this exercise, which is why, the size is set to a small number, in this case, 5.</strong></p>
  
  <p>Right now, I am struggling with quite a few issues, but my code looks like this:</p>
  
  <pre><code>a DB 4, 72, 52, 12, 29
  b DB 0, 0, 0, 0, 0 ;I don't know how to define an empty array, so I am setting everything to zero
  
  LEA SI, a[4]
  MOV b[0], [SI]
  
  LEA SI, a[3]
  MOV b[1], [SI]
  
  LEA SI, a[2]
  MOV b[2], [SI]
  
  LEA SI, a[1]
  MOV b[3], [SI]
  
  LEA SI, a[0]
  MOV b[4], [SI]
  </code></pre>
  
  <p>So I am loading the addresses of each space in a from the reverse order, and moving that data to b. Is this the right solution? </p>
  
  <p>Thanks.</p>