Assembly 移动%eax,(%esp)

Assembly 移动%eax,(%esp),assembly,x86,att,mov,addressing-mode,Assembly,X86,Att,Mov,Addressing Mode,以下陈述之间有什么区别 mov %eax,%esp mov %eax,(%esp) 我正在研制一颗二元炸弹,在装配的早期,我遇到了一些mov和leal命令的问题 这会将%eax中的值复制到%esp中 mov %eax,%esp 这会将值从%eax复制到内存中%esp指向的位置 mov %eax,(%esp) 一份复印本。其他加载来自它指向的内存。@Mysticial:这是AT&T语法,所以一切都是向后的--%esp和(%esp)是目的地,而不是来源。@JerryCoffin啊哈!!!我总是

以下陈述之间有什么区别

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

我正在研制一颗二元炸弹,在装配的早期,我遇到了一些
mov
leal
命令的问题

这会将%eax中的值复制到%esp中

mov %eax,%esp
这会将值从%eax复制到内存中%esp指向的位置

mov %eax,(%esp)

一份复印本。其他加载来自它指向的内存。@Mysticial:这是AT&T语法,所以一切都是向后的--%esp和(%esp)是目的地,而不是来源。@JerryCoffin啊哈!!!我总是落入那个陷阱…后者本质上是pop eax,没有减少esp