Now I want to load this code into a chunk of memory and then call it. What is a proper C way to do this?
Code: Select all
myrout = (void *)codemem;
/* now soemthing like */
Do I need a function pointer? And if so, how do I define it properly?
*EDIT* And ofocurse I need to declare somehow that I have to pass things on the stack - C style. (The original routine is called with ~C:myprout() from GFABASIC)