From: pcadavez AT NOSPAMmail DOT esoterica DOT pt (brainpower) Newsgroups: comp.os.msdos.djgpp Subject: Calling NASM-compiled functions Date: Mon, 08 Jun 1998 17:48:36 GMT Organization: Esoterica, Portugal Message-ID: <357c22f5.911179@news.esoterica.pt> NNTP-Posting-Host: por177.esoterica.pt Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi everyone. I looked through the FAQ but didn't find any help for this problem: I would like to use a function which is compiled with NASM (and runs OK) and have its parameters redirected to registers, such as this code (WATCOM C/C++): void func(long a, long b); #pragma aux func "*" parm [esi] [edi] this means a goes into the ESI register and b goes into EDI, and i can use them in the assembly code. Is there a way to do this in DJGPP without having to resort to externally-declared variables, such as i'm doing now? a = 1; b = 1; func(); this looks dirty. can anyone help? thanks, brainpower -- hou. pcadavez AT mail DOT telepac DOT pt