From: "Alexei A. Frounze" 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: 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" 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 > > >