assembly - Difference between memory and register -
i saw assembly code like,
mov [eax], ebx
the above line, mentioned [eax]
memory , ebx
register. so, here difference between [eax]
, ebx
. happen in above instruction.
in syntax, brackets around register means memory location used (as source or destination, according instruction) starting address specified @ register (eax in case). example, if eax contained 1344 before instruction, value ebx copied logical memory addresses 1344-1347 (because 4 byte copying).
i hope enough untangle them in mind:) , please notice more complex cases possible (e.g. mov [eax+ecx],ebx
forms destination address sum of 2 register values).
Comments
Post a Comment