delorie.com/archives/browse.cgi | search |
From: | "Groman" <groman AT tfz DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Help interfacing DJGPP and NASM again... |
Date: | Fri, 12 Nov 1999 23:14:12 -0800 |
Organization: | Posted via Supernews, http://www.supernews.com |
Lines: | 27 |
Message-ID: | <s2q3mqdehsq93@news.supernews.com> |
X-Complaints-To: | newsabuse AT supernews DOT com |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
hello.. could somebody please help me with this? I have the following NASM function which I call from my DJGPP program: _testfunc: push ebp mov edx, [esp+4] mov ecx, [esp+8] add edx,ecx mov eax,edx leave ret which is declared in C++ as extern long int testfunc(long int x,long int y); and it should return the sum of the two long ints? right? -- ------ "A box with a happy face, carrying a colorful flag, riding a sinking penguin, which is being chased by a dog on two silver dolphins..." - A Great Prophecy
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |