www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/21/09:35:22

Message-Id: <m0z9rGH-000S4AC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Alex Sandro Queiroz <asandro AT lcg DOT dc DOT ufc DOT br>, djgpp AT delorie DOT com
Date: Fri, 21 Aug 1998 10:58:41 +0000
MIME-Version: 1.0
Subject: Re: Accessing C #define in inline assembly
References: <m0z9DfU-000S3uC AT inti DOT gov DOT ar>
In-reply-to: <Pine.LNX.3.96.980819182054.7124A-100000@cizeta.lcg.dc.ufc.br>

Alex Sandro Queiroz <asandro AT lcg DOT dc DOT ufc DOT br> wrote:

> On Wed, 19 Aug 1998, Salvador Eduardo Tropea (SET) wrote:
> 
> > "Rylan" <rylan AT intekom DOT co DOT za> wrote:
> > 
> > > In DJGPP inline assembly, how can  I access symbols "#defined" in the C file
> > > in which the relevant inline assembly occurs?
> > > 
> > > I have the following define:
> > > 
> > > #define TIMEOUT 9000
> > > 
> > > How can I access this in inline assembler:
> > > 
> > > __asm__  __volatile__
> > > ("
> > >   mov ??????,%cx
> > > ");
> > 
> > Easy use the "inmediate" constraint:
> > 
> 
> 	BTW, how can I get a complete list of all asm constraints?

Most of them are in the gcc info file, the rest are commented in the sources 
of gcc, in the configuration files for x86, etc.

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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