如何在asmjit中获取当前指令?

时间:2016-04-20 05:02:40

标签: c++ asmjit

根据此post,在x64中,您可以执行lea rax, [rip]来获取当前指令。我如何使用asmjit做到这一点?

1 个答案:

答案 0 :(得分:0)

我找到了解决方案:assembler.lea(asmjit::x86::rax, asmjit::x86::ptr(asmjit::x86::rip));