delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/04/09:38:40

From: "Marp" <Marp AT 0 DOT 0 DOT 0 DOT 0>
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: <slrn84i4sc DOT fs3 DOT James AT linux DOT home>
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 <James AT linux DOT home> 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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019