Mail Archives: djgpp/2001/03/06/12:06:41
From: | "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Calling convention
|
Date: | Tue, 6 Mar 2001 14:03:42 -0500
|
Lines: | 31
|
Message-ID: | <98357d$35hp$1@ID-57378.news.dfncis.de>
|
References: | <u98p6.31132$c7 DOT 9620206 AT news3 DOT rdc1 DOT on DOT home DOT com>
|
NNTP-Posting-Host: | nas-202-176.rochester.navipath.net (64.20.202.176)
|
X-Trace: | fu-berlin.de 983898158 103993 64.20.202.176 (16 [57378])
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
void abc (int a, int b, int c) {}
would require pushing c then b then a, not a then b then c.
also make sure that your ASM functions preserve contents of segment
registers and EBX, ESI, EDI.
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/
"Dylan Trotter" <heavier AT hotmail DOT com> wrote in message
news:u98p6.31132$c7 DOT 9620206 AT news3 DOT rdc1 DOT on DOT home DOT com...
> I am writing some NASM functions to be linked with ld, but I'm not sure
what
> the calling convention is with regard to changed registers. Do I have to
> save all registers inside a function or a subset of them, or does the
caller
> have to worry about that?
>
> Thank you,
> Dylan Trotter
> heavier AT hotmail DOT com
>
>
>
- Raw text -