Can someone explain how to call a function C from a machine code routine?.
- Posted by javier07b9 Nov 08, 2010
- 1187 views
This program is an idea of how serious the real program
atom key key=SDL_GetKeyState(NULL) constant main_bucle=get_asm( "pushad "& "l1: "& "mov al,[key+27] "& <===== Get escape key state. "call SDL_PumpEvents "& <===== This is not possible but it would be like. "or al,al "& "jz l1: "& "popad "& resolve_param("key",key) resolve_param("SDL_PumpEvents ",xSDL_PumpEvents) call(main_bucle) SDL_Quit()
[edit: added eucode tags]