x86 register designations for asm()

Edward A. Falk falconer@best.com
Thu Dec 2 11:46:00 GMT 1999


Hi all; quick question:  Is there a list of x86 register
names for the asm() extension?  I've figured out from
reading other posts that:
	a	eax
	b	ebx
	c	ecx
	d	edx
	S	esi
	D	edi


but what about the rest?  Also, is there a syntax for the
16-bit and 8-bit registers?  E.g. could I do something like

	asm( "blahblah" : "=al" (x), "=ah" (y) ) ;

Apologies if there's a better group to ask this in; I couldn't
think of any.

--
-ed falk, falk@falconer.vip.best.com	    *********************#*************#
See http://www.rahul.net/falk/whatToDo.html *#**************F******!******!*!!**
and read 12 Simple Things You Can Do	    ********!***************************
to Save the Internet			    #****#******#*********!**WW*W**W


More information about the Gcc-help mailing list