Search code examples
assemblyx86cpu-registersattaddressing-mode

What do parentheses surrounding a register mean?


What exactly is the difference resulting from a register being surrounded in parentheses in an operation?

For example:

movl (%edx), %eax

versus

movl %edx, %eax

Thank you in advance!


Solution

  • Means "the value at the memory address that's stored in the register".