| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:578 |
| From: | engstad AT funcom DOT com (Paal-Kristian Engstad) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: keyboard/int-handlers |
| Date: | 21 Jan 1996 21:14:55 GMT |
| Organization: | Funcom Productions. |
| Lines: | 17 |
| Message-ID: | <4duacf$f26@odin.funcom.no> |
| References: | <960121002501_100662 DOT 3563_EHV52-1 AT CompuServe DOT COM> |
| NNTP-Posting-Host: | odin.funcom.no |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Fulco Bohle (100662 DOT 3563 AT compuserve DOT com) wrote:
: 3) Can I reference C-variables in inline assembler ? (maybe a stupid question)
: example( )
: {
: short int the_ax_register;
: ..
: __asm__ __volatile__ (mov ax, the_ax_register);
: ..
: }
:
example(void)
{
short int _ax;
__asm__ __volatile__("mov %%ax, %0" : "=a" (_ax) :: );
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |