assembly - jne 到 eax 中的值

标签 assembly x86

对于一个类,我需要有条件地跳转到值 $0x55683af8:
但是,此代码无效。我如何跳转到以下值?

 mov    $0x55683af8,%eax
 cmpl   $0xdeadbeef,0x0(%ebp)
 jne    *%eax

最佳答案

您不能将条件跳转与寄存器结合使用,而您可以这样做...

 mov    $0x55683af8,%eax
 cmpl   $0xdeadbeef,0x0(%ebp)
 je     Skip 
 jmp    *%eax        //or call
Skip

关于assembly - jne 到 eax 中的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8017149/

相关文章:

assembly - 英特尔 JCC 勘误表 - 真的应该单独对待 JCC 吗?

assembly - 链接结构 LDR PEB

assembly - LDA、STA、SUB、ADD、MUL 和 DIV 运算在 Knuth 的机器语言 MIX 中如何工作?

c++ - 以最便宜/最少侵入的方式自动更新一点?

performance - 每条汇编指令需要多少个 CPU 周期?

linux - 关于Linux中程序的内存布局

assembly - objdump 输出中的 "-0x1(%edx,%ecx,1)"是什么意思?

linux - 浮点异常错误(核心转储)

x86 - promise 与退休指令

memory - 如何实现/设置数据断点?