From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: using inline asm with djgpp ? Date: Sat, 4 Dec 1999 09:05:02 -0500 Organization: MindSpring Enterprises Lines: 20 Message-ID: <82b72n$7hc$1@nntp9.atl.mindspring.net> References: NNTP-Posting-Host: c7.b7.cf.31 X-Server-Date: 4 Dec 1999 14:05:11 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 James Stevenson wrote in message news:slrn84i4sc DOT fs3 DOT James AT linux DOT home... > Hi > > i have been having a few problems > writing asm into the c code in djgpp > it does not seem to let me call interuppts > can anyone help me with this? You can't generate real mode interrupts directly. You have to use DPMI function 0x300 instead. See below. > > or is there a better way to call interuppts? Use either __dpmi_int() or __dpmi_simulate_real_mode_interrupt() functions. These will call the DPMI function for you. See the libc.info documentation and chapter 18 of the DJGPP faq for details on using these functions.