title: MOVing between two memory addresses
body: <p>I'm trying to learn assembly (so bear with me) and I'm getting a compile error on this line:</p>
  
  <pre><code>mov byte [t_last], [t_cur]
  </code></pre>
  
  <p>The error is</p>
  
  <pre><code>error: invalid combination of opcode and operands
  </code></pre>
  
  <p>I suspect that the cause of this error is simply that its not possible for a mov instruction to move between two memory addresses, but half an hour of googling and I haven't been able to confirm this - is this the case?</p>
  
  <p>Also, assuming I'm right that means I need to use a register as an intermediate point for copying memory:</p>
  
  <pre><code>mov cl, [t_cur]
  mov [t_last], cl
  </code></pre>
  
  <p>Whats the recommended register to use (or should I use the stack instead)?</p>