From: beppu AT rigel DOT oac DOT uci DOT edu (John Beppu) Newsgroups: comp.os.msdos.djgpp Subject: Re: [asm] what registers to preserve Date: 11 Dec 1996 10:42:16 GMT Organization: University of California, Irvine Lines: 22 Message-ID: <58m368$12a@news.service.uci.edu> References: <58a7kc$1pa AT news DOT service DOT uci DOT edu> <58jcu5$l6b AT leporello DOT cs DOT unibo DOT it> NNTP-Posting-Host: rigel.oac.uci.edu DJ-Gateway: from newsgroup comp.os.msdos.djgpp Apparently-To: djgpp AT delorie DOT com In article <58jcu5$l6b AT leporello DOT cs DOT unibo DOT it>, Nicola Gaggi wrote: >John Beppu (beppu AT rigel DOT oac DOT uci DOT edu) wrote: > >: When linking a function written in assembly, which >: registers should be preserved? I think ebp should, >: but are there any others? > > >Hello, > >The answer is simple, every register your function clobbers excluding AX Damn. I didn't want to see that. When I dump the assembler output of a function written in C, it doesn't look as if it preserves every register it uses. -- beppu AT uci DOT edu .............................................................