I want to jump to a function and pretend I had just called it. So I push the arguments to the stack, I load the address of the label I want to jump to when I return from the function I "call" and push it to the stack, I set ebp to esp ... now what?
Can I just
__asm__(
"jmp %0;"
:
:"rm"(&my_func)
);
or what would be the proper way to do this?