I am trying to use the following code
__declspec(naked) void StubStart()
{
__asm{
MOV EAX, oep
JMP EAX
}
}
and I wanted to tell it that the “oep” variable is in hex, but I think I cannot put both (0x and h) to tell it, it is in hex.
what can I do?
The
oepvariable is most likely just anint(or some other integral type).Regardless if you did
or
it will ultimately be represented in binary in the computer… you can’t say that a variable contains a hexadecimal value, decimal value or octal value… it contains an integer.