How to get current instruction in asmjit?

334 Views Asked by At

According to this post, in x64, you can perform lea rax, [rip] to get the current instruction. How would I do this using asmjit?

1

There are 1 best solutions below

0
user6228183 On

I figured out the solution: assembler.lea(asmjit::x86::rax, asmjit::x86::ptr(asmjit::x86::rip));