Calling Class Functions in ASM?
I am trying to call a function that is in a class, through ASM. I have looked at the Assembly Listing Files, and I tried the code. It didn't work. I am programming an engine in SDL, btw. It was something like this (what I got from the listing files):
This code will give me an error that says (something like this):
mov edx, SDL_SWSURFACE | SDL_ANYFORMAT
mov ecx, szTitle
mov eax, DWORD PTR screen
mov ebx, g_Engine // 'g_Engine' : My global engine class declaration
call SDLWindow // Call 'EngineSDL::SDLWindow'
'SDLWindow' ... Label not defined
The listing file had some other characters in it, but they weren't part of the code. And it also included some text 'EngineSDL'. At the end, the comment says " EngineSDL::SDLWindow". If anyone can offer me any help on how to call the equality to g_Engine->SDLWindow(...) in ASM, please help me. I would like to figure this out. :D:)