mov esi,eax
writes the contents of register eax
to register esi
.
mov [esi],eax
writes the contents of register eax
to the memory address specified by register esi
(for example, if esi
contained the value 0x1234, eax
would be written to address 0x1234).