delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/11/17:13:42

Message-ID: <339F5CFE.22D6@netcomuk.co.uk>
Date: Wed, 11 Jun 1997 19:20:46 -0700
From: William McGugan <wmcgugan AT netcomuk DOT co DOT uk>
MIME-Version: 1.0
To: billc AT blackmagic DOT tait DOT co DOT nz
CC: djgpp AT delorie DOT com
Subject: Re: What registers do I have to save when using external assembler
functions?
References: <339c502e DOT 3723200 AT nntp DOT netcomuk DOT co DOT uk> <339DBCA6 DOT 63B1 AT blackmagic DOT tait DOT co DOT nz>

Bill Currie wrote:
> 
> 
> %ebx, %esi, %edi, %ebp, %es, %ds and %ss (%cs is pretty obvious:) %eax,
> %edx and %ecx are all free for your use (however, %eax is used for
> return values (so is %edx, but only for 8 byte values)). %fs and %gs are
> also free, however, libc uses %gs internally and never touches %fs.
> 


Thanks for that! That was precisely what I needed to know. :)

William.


- Raw text -


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