Mail Archives: djgpp/1998/08/19/17:16:21
Date: | Wed, 19 Aug 1998 18:21:58 -0300 (EST)
|
From: | Alex Sandro Queiroz <asandro AT lcg DOT dc DOT ufc DOT br>
|
To: | DJGPP Discussion List <djgpp AT delorie DOT com>
|
Subject: | Re: Accessing C #define in inline assembly
|
In-Reply-To: | <m0z9DfU-000S3uC@inti.gov.ar>
|
Message-ID: | <Pine.LNX.3.96.980819182054.7124A-100000@cizeta.lcg.dc.ufc.br>
|
MIME-Version: | 1.0
|
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?
-- Alex asandro AT lcg DOT dc DOT ufc DOT br
-------------------------------------------------------------------------------
"My power comes from loneliness. I'm not afraid of the tempestous rains neither
the big winds, 'cause I'm also the dark of the night."
- Clarice Lispector
-------------------------------------------------------------------------------
- Raw text -