Date: Thu, 02 May 1996 18:53:13 +0200 (MET DST) From: "Christoph P. Kukulies" Subject: Re: Accessing vars in asm.. In-reply-to: <4m7duj$fvk@news.nevada.edu> To: gaghon AT nevada DOT edu (GEORGE GAGHON) Cc: djgpp AT delorie DOT com Reply-to: Christoph Kukulies Message-id: <199605021653.SAA15288@gilberto.physik.rwth-aachen.de> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit > > > How does one access a variable from the asm command. This example does > not want to link. > > asm ( " .. code .. > cmpw _cvariable, %%ax > jz not_set > .. mode code .. > " > : /* No Outputs */ > : "a" (x) ... > ); > > I have used us all the registers available, and needed to compare the > contents of '_cvariable' to ax. > > Thanks > > Vince Maybe you take a look at: http://www.rt66.com/~brennan/djgpp/bgtia.html or ftp.rt66.com:/users/brennan/bgtia.html or ftp.rt66.com:/users/brennan/bgtia.txt (last resort) > > --Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de