delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/15/15:09:43

Message-Id: <m10CUIr-000S5dC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Sebastian Schuberth <sebastian DOT schuberth AT gmx DOT net>, djgpp AT delorie DOT com
Date: Mon, 15 Feb 1999 17:10:49 +0000
MIME-Version: 1.0
Subject: Re: Again: Register calling conventions
In-reply-to: <36C85C4E.580C4DA1@gmx.net>
X-mailer: Pegasus Mail for Windows (v2.54)
Reply-To: djgpp AT delorie DOT com

Sebastian Schuberth <sebastian DOT schuberth AT gmx DOT net> wrote:

> What I wanted to know was: Is there a way to use the same external .asm
> file (which includes function definitions which are ment to be called
> using registers to pass arguments) with Watcom and DJGPP? I DO NOT want
> a header file with the "#pragma aux ... parm [..] .." stuff for Watcom
> and inline asm definitions for DJGPP. They BOTH should use the functions
> defined in the external .asm file.

Use inline assembler to *call* your external module. Using inline assembler 
you can load the registers with any variable content and then do just an 
assembler call.

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://welcome.to/SetSoft
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019