www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/02/12:57:49

Date: Thu, 02 May 1996 18:53:13 +0200 (MET DST)
From: "Christoph P. Kukulies" <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
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 <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-id: <199605021653.SAA15288@gilberto.physik.rwth-aachen.de>
MIME-version: 1.0

> 
> 
> 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

- Raw text -


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