From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Korn To: "'Doran, Steve @ OS'" , "'gcc-help@gcc.gnu.org'" Subject: RE: Inline Assemby Date: Tue, 20 Mar 2001 22:47:00 -0000 Message-id: <718D38CAB6E0D011B2C90060970C28A5642777@exchangeserver.pixelpower.com> X-SW-Source: 2001-03/msg00169.html -----Original Message----- From: Doran, Steve @ OS [ mailto:Steve.Doran@OS.L-3com.com ] Sent: 20 March 2001 19:37 >I am somewhat confused about how to embed inline assembly in a >gcc program. Below is my simple assembly instructions: > in al, E0h > or al, 01h > out E0h, al >what is the syntax to insert my assembly instructions in gcc? I have >read the gcc manual and I have tried all sorts of iterations without >succcess. http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC93 >BTW, I have a requirement to port the assembly so I cannot convert it into >C. Or perhaps you could break the assembly code out into a separate function and put it in a .S file ? DaveK -- All your base are belong to us! ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************