I'm studying assembly language and can't resolve the following exercise myself.
Assume the following values are stored at the indicated memory addresses and registers:
Now, we have an instruction:
addl %ecx , (%eax)
For me it means - storing the result of addition of values stored in %ecx and in memory address (%eax), in a memory address (%eax)
.
Correct answer for that exercise is : Value 0x100 and destination address 0x100.
I understand that right operand is destination address, but how did we get value of 0x100
by the calculation %ecx
+ (%eax)
?