delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/01/19:44:16

Sender: nate AT cartsys DOT com
Message-ID: <36B64AA2.DDD7B659@cartsys.com>
Date: Mon, 01 Feb 1999 16:45:22 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
CC: "John S. Fine" <johnfine AT erols DOT com>
Subject: Re: ASM - function: what should be pushed?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990201085530 DOT 27193D AT is>
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Sun, 31 Jan 1999, John S. Fine wrote:
> 
> > > Is anything wrong with section 17.4?
> >
> >   DS, ES, FS, GS ??
> >
> >   I would also mention EBP.  Never underestimate a programmer's
> > tendancy to jump in without the expected background knowledge.
> 
> Here's what section 17.4 says:
> 
>   *A*: You can safely clobber EAX, ECX, and EDX, but must save and restore all
>   other registers at the end of your assembly function.
> 
> I think "all other registers" include DS, ES, FS, and everything
> else.

In which case you might mention that the floating-point registers can be
safely clobbered.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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