Mail Archives: djgpp/1996/05/02/11:36:32
| Xref: | news2.mv.net comp.os.msdos.djgpp:3339
|
| From: | gaghon AT nevada DOT edu (GEORGE GAGHON)
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Accessing vars in asm..
|
| Date: | 1 May 1996 10:21:07 GMT
|
| Organization: | University of Nevada System Computing Services
|
| Lines: | 19
|
| Message-ID: | <4m7duj$fvk@news.nevada.edu>
|
| NNTP-Posting-Host: | pioneer.nevada.edu
|
| NNTP-Posting-User: | unauthenticated_user
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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
- Raw text -