cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/06/05:05:45

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Asm routine returns
Date: Mon, 06 Oct 1997 09:37:11 +0200
Organization: University of Ghent, Belgium
Lines: 25
Message-ID: <34389527.4D61@rug.ac.be>
References: <EHLvAq DOT LqH AT nonexistent DOT com>
NNTP-Posting-Host: eduserv1.rug.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Sam Davies wrote:
 
> I
> modify SI, DI, BP, and DS, but I push and pop all these at the beginning
> and end...  Is there anything else that I could be screwing up in my
> routine that is causing this strange behavior?  I don't have to save the
> other general registers, do I?

I'm sure you have to preserve
si, di, bp, ds, es (and ofcourse cs:ip & ss:sp)

I think you have to preserve
bx

I don't think you have to preserve
ax, dx, cx

I'm sure you don't have to preserve (unless your program expects
otherwise)
fs, gs

-- 
+----------------+
| Vik Heyndrickx |
+----------------+

- Raw text -


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