Mov% eax, (% esp)

What is the difference between the following statements?

mov %eax,%esp mov %eax,(%esp) 

I am working on the distribution of a binary bomb, and I am having problems with some of the mov and leal commands at an early stage of assembly.

+8
assembly x86 addressing-mode att mov
source share
1 answer

This copies the value in% eax to% esp.

 mov %eax,%esp 

This copies the value from% eax to the location in memory that% esp points to.

 mov %eax,(%esp) 
+10
source share

All Articles