Assembly square brackets

I always wondered what the difference between

mov esi,eax 

and

 mov [esi],eax 

It was.

Any help is appreciated.

+6
source share
1 answer

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).

+14
source

Source: https://habr.com/ru/post/952427/


All Articles