From: "Dylan Trotter" Newsgroups: comp.os.msdos.djgpp References: <98359g$364j$1 AT ID-57378 DOT news DOT dfncis DOT de> Subject: Re: Calling convention Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Tue, 06 Mar 2001 17:08:45 GMT NNTP-Posting-Host: 24.43.108.121 X-Complaints-To: abuse AT home DOT net X-Trace: news3.rdc1.on.home.com 983898525 24.43.108.121 (Tue, 06 Mar 2001 09:08:45 PST) NNTP-Posting-Date: Tue, 06 Mar 2001 09:08:45 PST Organization: Excite AT Home - The Leader in Broadband http://home.com/faster To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Okay thanks, So basically I can clobber any or all of eax, ecx and edx. "Alexei A. Frounze" wrote in message news:98359g$364j$1 AT ID-57378 DOT news DOT dfncis DOT de... > 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 > > > > > > > >