Valhalla Legends Archive

Programming => General Programming => Assembly Language (any cpu) => Topic started by: ctype on December 01, 2004, 08:30 AM

Title: Inline Assembly with Pascal
Post by: ctype on December 01, 2004, 08:30 AM
I thought it was best to post this up on the assembly language forum.

Just a question for all those assembly programmers out there...

When calling a procedure, where do you move the parameters? My best guess - although I haven't tried it yet - is to push the parameters to the stack then have the procedure in question pop them back off (into appropriate variables in Pascal).

I assume the method that applies to pure assemlby also applies when assemlbing inline with Pascal?
Title: Re: Inline Assembly with Pascal
Post by: Adron on December 01, 2004, 09:03 AM
This has been discussed. Using keywords like "calling convention", "stdcall", "cdecl", "fastcall" or "pascal" in a search of this forum should help you find the answers.