I am using ASM in a small game that I'm programming (using SDL) and when you initialize SDL video it looks like this:
// Initialize sdl video
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
// Error initializing ... notify user
//
}
in ASM it looks like this:
__asm {
MOV eax, 32 ; SDL_INIT_VIDEO
PUSH eax ; Push out eax
; Call SDL_Init
CALL SDL_Init
}
I would like to know if SDL_Init returns a -1 (< 0). If you can help me please do =).