[SDL] Calling SDL from assembly on Windows
slindber at uiuc.edu
Wed Apr 7 19:41:59 PDT 2004
Glenn Maynard wrote:
> On Wed, Apr 07, 2004 at 03:44:33PM -0500, Shawn Lindberg wrote:
>>I'm trying to call SDL functions from assembly code, and assemble it
>>with NASM and link it using MinGW under Windows. I've gotten it to
>>assemble and link just fine, but when I run the program it crashes. I
>>think I'm just missing something. Here's the assembly code:
> Compile it in C, and look at the assembly with "objdump -S"; see what
> you're doing differently.
I don't have time to try this at the moment, but thanks for the suggestion.
> That aside, why are you doing this? I can't think of any interesting
> reason to want to make SDL calls from assembly; at application level
> these days, assembly is for time-critical inner loops, and time-critical
> inner loops don't generally make SDL calls.
It's for a class. The class is on x86 assembly, and it's got all these
Windows specific library functions to use. I thought I could make it
better by using SDL to make the library functions more portable.
More information about the SDL