[SDL] Using SDL in assembler (GoAsm, x86)
James Eibisch
jeibisch at idc.com
Sat Nov 23 05:53:01 PST 2002
THESNIERES Sylvain wrote:
>
>for optimisations purposes, as far as there is only 1 parameter to put,
>it is in the register EAX. So SDL_Init got it. Then is the return code
>ALWAYS (optimized code or not) in the EAX register (except 64 bits values,
>in EAX:EDX registers).
>
>as a result, EAX=0 -> it's Ok (it would probably be 0xFFFFFFFF else)
Thanks Sylvian, Neil, Atrix, and everyone else who replied to my woes. I think I
was trying to bite off more than I could chew, so on reflection I'm going to do
SDL in C for now and use assembler for other things. I'll revist this topic when
a get a bit more knowledge, as it seems a really nice and obvious kind of thing
to do. (I did get an SDL window up and running in asm, but ground to a halt at
that point.)
Now, my current challenge is how to get SDL working in LCC-Win32, so expect a
thread on that ;-) (Or I could just use mingw as Julien suggested).
J.
More information about the SDL
mailing list