does use SDL cdecl calls or pascall (std) calls ?
it’s important to know, because it changes the stack behaviour …
sylvain>> Following Neil’s and Atrix’ suggestions, this is what I have so far:
MOV EAX,20h ;value of SDL_INIT_VIDEO gleaned from SDL.h
PUSH EAX
CALL SDL_InitYou need to either:
pop eax
Or:
add esp, 4
Removing the PUSH removes the crash but I’m not sure if the call succeeded or
not. After the call, SDL_Init has changed 3 registers:
EAX = 0That’s your return code (in EAX). Sounds like it succeeded.
Neil