www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/06/12:06:41.1

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:04:51 -0500
Lines: 29
Message-ID: <98359g$364j$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 983898227 104595 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

extra note.
in your ASM functions you don't have to remove parameters from stack by
using RET N instruction because the caller removes that stuff from the stack

--
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 -


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