www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/01/01:58:49

Date: Mon, 1 Feb 1999 08:56:01 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "John S. Fine" <johnfine AT erols DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: ASM - function: what should be pushed?
In-Reply-To: <36B4A0A5.585D@erols.com>
Message-ID: <Pine.SUN.3.91.990201085530.27193D@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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.

- Raw text -


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