Posted: Tue Mar 23, 2010 6:52 am Post subject: Calling Functions in assembly
in /keypresstut.php on the official cheat engine site (stupid forum won't let me post URL)
In that tutorial the author talks about calling the GetAsyncKeystate function in User32.dll. I am a C# programmer and use that method in heaps of my programs. From what I gather you need to push the value you want to pass in to the function, and then to get the value out of the function, you use eax.
Is this the case for all functions?
How do I use functions not in User32.dll?
How do I pass in more than one value for functions that take more than one?
Where are the values stored if I get an array back?
So basically I am asking for a guide on this whole calling functions in assembly thing.
it all depends on how you are coding. if you are using pure assembly without high level constructs such as macros then all parameters must be pushed onto the stack in reverse order. eax, ecx and edx are designated to be trash registers. eax holds the return value. this call convention is known as stdcall and is used by x86 windows.
what are you writing your code in ? auto-assembler ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum