What happens behind the scenes when adding to memory from a register?
For example:
.data
foo dword 1
.code
mov eax, 10
add foo, eax
Does it move the contents of foo to some register, do the addition in the ALU and returns it to memory?
What happens behind the scenes when adding to memory from a register?
For example:
.data
foo dword 1
.code
mov eax, 10
add foo, eax
Does it move the contents of foo to some register, do the addition in the ALU and returns it to memory?