delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/19/22:46:30

Date: Sat, 17 Jan 1998 17:35:14 -0800 (PST)
Message-Id: <199801180135.RAA09118@adit.ap.net>
Mime-Version: 1.0
To: ian_dunbar AT hotmail DOT com, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: NASM and DJGPP question

At 05:35  1/16/1998 GMT, Ian Dunbarr wrote:

>So my question is whether is's just luck that the code works fine with djgpp
>without saving registers it writes to, or does DJGPP assume that certain
>registers are going to be trashed by any function. Does anyone know the rules
>for all the registers when calling NASM code from DJGPP C code?
You must save EBX, ESI, EDI, EBP, DS, and ES. You must also restore the
stack, of course. Other registers are fine to clobber.


Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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