From: "Christophe Pollet" Newsgroups: comp.os.msdos.djgpp Subject: Re: Usign C variables in ASM with gcc Date: Sun, 1 Apr 2001 13:45:15 +0200 Organization: Usenet provided by sunrise communications ag Lines: 26 Message-ID: <9a75a9$lpd$1@news1.sunrise.ch> References: <9a750m$j2r$1 AT news1 DOT sunrise DOT ch> NNTP-Posting-Host: pop-zh-25-1-dialup-190.freesurf.ch X-Trace: news1.sunrise.ch 986126473 22317 194.230.201.190 (1 Apr 2001 12:01:13 GMT) X-Complaints-To: usenet AT sunrise DOT ch NNTP-Posting-Date: 1 Apr 2001 12:01:13 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ok... I copy the code, it's easier : *** int VideoAfficheChar(char chr) { asm(" mov %ah,0x0E "); asm(" mov %al,chr"); asm(" int =0x10 "); return(0); } *** > Hi ! > I'd like to use C variable in ASM peration... > > I have : > asm ("mov %al, my_variable"); > but it doesn't work... > > What have I to do ?? > > Christophe > >