What is the difference between "mov (%rax),%eax" and "mov %rax,%eax"?
<p>What is the difference between <code>mov (%rax),%eax</code> and <code>mov %rax,%eax</code>? I'm sure this is a simple question, but I can't find the answer anywhere.</p>

<p>Here is the original code that prompted my question:</p>

<pre><code>mov    -0x8(%rbp),%rax
mov    (%rax),%eax
lea    (%rax,%rax,1),%edx
mov    -0x8(%rbp),%rax
mov    %edx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
</code></pre>