c++cassemblyasmjit

AsmJit equivalent of mov eax,[ecx+0CC]


What is the asmjit equivalent of mov eax,[ecx+0CC]?

This is close: c.mov_ptr(x86::eax, x86::ptr(x86::ecx, 0x0CC)); but the arguments are wrong.

Any ideas?


Solution

  • The answer is:

    a.mov(x86::eax, x86::ptr(x86::ecx, 0x0CC));