I have a lot of old code in the form:
FARPROC p[1024];
...
__asm {
jmp p[128];
}
This worked well for 32-bit applications, but upgrading to 64-bit where inline asm
is no longer supported.
Is there an equivalent jmp
function in C++?
I have a lot of old code in the form:
FARPROC p[1024];
...
__asm {
jmp p[128];
}
This worked well for 32-bit applications, but upgrading to 64-bit where inline asm
is no longer supported.
Is there an equivalent jmp
function in C++?
While MSVC won't let you compile ASM, you can instead compile the ASM using MASM and then link against it. There is a fairly comprehensive example of how to do the complete setup here.
From what I can tell you're just trying to invoke a function, in which case invoking functions using the actual language might be a better avenue to consider.
i didn't use it ever but there is goto function still.