How can I get a variable value to a register using AsmJit API? Some thing like below?
int x = 234;
Assember a;
a.mov(rax, $value_of_x);
How can I get a variable value to a register using AsmJit API? Some thing like below?
int x = 234;
Assember a;
a.mov(rax, $value_of_x);
Copyright © 2021 Jogjafile Inc.
AsmJit supports immediate operands, all you need is:
or just
The previous examples used function overloads that accept immediate values directly. However, it's also possible to create the
Immoperand and use it in your code dynamically:Or: