Date: Sat, 17 Jan 1998 17:35:14 -0800 (PST) Message-Id: <199801180135.RAA09118@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: ian_dunbar AT hotmail DOT com, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: NASM and DJGPP question Precedence: bulk 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