I'm reading through a book that is describing C linked lists and how they are represented within x86 ASM. I having difficulty understanding the instruction MOV [edx], eax
.
If the instruction was reversed, MOV eax, [edx]
, I would understand it to mean copy the 4 bytes represented by the memory address stored in edx and store it in eax.
What does MOV [edx], eax
represent?
If using the []
with the MOV
instruction, I thought it meant to copy the data residing at the memory address to it's destination. If that is true, how can you copy whatever is in eax
to a data value in edx
?