标签: c++ asmjit
根据此post,在x64中,您可以执行lea rax, [rip]来获取当前指令。我如何使用asmjit做到这一点?
lea rax, [rip]
答案 0 :(得分:0)
我找到了解决方案:assembler.lea(asmjit::x86::rax, asmjit::x86::ptr(asmjit::x86::rip));
assembler.lea(asmjit::x86::rax, asmjit::x86::ptr(asmjit::x86::rip));