public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* x86 register designations for asm()
@ 1999-12-02 11:46 Edward A. Falk
  1999-12-31 22:24 ` Edward A. Falk
  0 siblings, 1 reply; 2+ messages in thread
From: Edward A. Falk @ 1999-12-02 11:46 UTC (permalink / raw)
  To: help-gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* x86 register designations for asm()
  1999-12-02 11:46 x86 register designations for asm() Edward A. Falk
@ 1999-12-31 22:24 ` Edward A. Falk
  0 siblings, 0 replies; 2+ messages in thread
From: Edward A. Falk @ 1999-12-31 22:24 UTC (permalink / raw)
  To: help-gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-31 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-02 11:46 x86 register designations for asm() Edward A. Falk
1999-12-31 22:24 ` Edward A. Falk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).