Mail Archives: djgpp/1996/05/02/22:26:22
GEORGE GAGHON (gaghon AT nevada DOT edu) writes:
> 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
>
I'm not sure but I *think* cvariable has to be global, i.e. defined
outside any function (and before the one where this bit of code is).
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." ,------------------------------------------------
-- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
- Raw text -