[英]Assembly Push Instruction
QUESTION 题
Thinking in terms of the GCC compiler, AT&T syntax and 32bit assembly, what two instructions would be equivalent to: 从GCC编译器,AT&T语法和32位汇编的角度考虑,以下两条指令等效于:
Push %eax
ATTEMPT: 尝试:
I'm think it is these two below: 我认为这是下面的两个:
Addl $0x4, %esp
movl %eax, -0x4(%esp)
Can someone confirm? 有人可以确认吗? If it is wrong could someone please point me in the right direction. 如果错了,有人可以给我指出正确的方向。 Thank you! 谢谢!
It should be, 它应该是,
leal -4(%esp), %esp;
movl %eax, (%esp);
sub may change the flags! 子可能会改变标志!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.