Date: Tue, 06 Mar 2001 22:15:32 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Dylan Trotter" Message-Id: <1659-Tue06Mar2001221531+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: (heavier AT hotmail DOT com) Subject: Re: Calling convention References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Dylan Trotter" > Newsgroups: comp.os.msdos.djgpp > Date: Tue, 06 Mar 2001 16:22:50 GMT > > 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? You need to save some of them. Section 17.4 of the DJGPP FAQ list has all the details.