Message-ID: <339F5CFE.22D6@netcomuk.co.uk> Date: Wed, 11 Jun 1997 19:20:46 -0700 From: William McGugan 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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.