Message-ID: <38DFD269.9E44A7DD@hotmail.com> From: Heavy X-Mailer: Mozilla 4.6 [en]C-SYMPA (Win98; U) X-Accept-Language: en,fr-CA MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: External assembly functions and arguments Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 Date: Mon, 27 Mar 2000 21:30:47 GMT NNTP-Posting-Host: 216.209.26.196 X-Trace: news20.bellglobal.com 954192647 216.209.26.196 (Mon, 27 Mar 2000 16:30:47 EST) NNTP-Posting-Date: Mon, 27 Mar 2000 16:30:47 EST Organization: Sympatico To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Okay, here's another external assembly question: How do I retrieve the arguments of a function written in external assembly? I was looking at some assembly source files, and from what I can piece together, %ebp points to the arguments passed to the function where 8(%ebp) would be the first argument, 12(%ebp) would be the second one, etc. However, the function I have written does not seem to want to work. I just wanted to confirm that this is the way DJGPP does argument passing in assembler. I think that this is related to another problem I am having, the assembler gives me an error about this line: mull 36(%ebp), %ebx It says that the operands don't match any known 386 instruction, which leads me to believe you cannot have this many arguments... this is pure speculation however. Thanks, Heavy heavier AT hotmail DOT com