Date: Wed, 19 Aug 1998 18:21:58 -0300 (EST) From: Alex Sandro Queiroz To: DJGPP Discussion List Subject: Re: Accessing C #define in inline assembly In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 19 Aug 1998, Salvador Eduardo Tropea (SET) wrote: > "Rylan" 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 -------------------------------------------------------------------------------