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