From: "Lanugo of the wandering souls" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Calling an interrupt from inline assembly Lines: 24 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: support AT usenetserver DOT com NNTP-Posting-Date: Thu, 22 Jun 2000 12:35:32 EDT Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. Date: Thu, 22 Jun 2000 18:38:53 +0200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii ha scritto nel messaggio ... > >On Wed, 21 Jun 2000, Lanugo of the wandering souls wrote: > >You don't need assembly for this. Here's how to say this in C: > > #include > > __dpmi_regs r; > > r.x.ax = 0x0013; > __dpmi_int (0x10, &r); > > >That's it! See sections 17.8 and 18.1-18.5 of the DJGPP FAQ for more >details about how to call real-mode services from a DJGPP program. Thank you very much. Lanugo