delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/10/10:51:44

Date: Wed, 10 Nov 1999 14:28:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Marius Myburg <iti06469 AT mweb DOT co DOT za>
cc: djgpp AT delorie DOT com
Subject: Re: Modifying Interrupt Vectors, and asm problem
In-Reply-To: <0FKY001YCBJTB4@cpt-proxy1.mweb.co.za>
Message-ID: <Pine.SUN.3.91.991110142251.8611k-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 9 Nov 1999, Marius Myburg wrote:

> Can anybode please tell me how I can modify the interrupt handling
> functions?

For the general description of hooking interrupts from DJGPP, see section 
18.9 of the DJGPP FAQ list (v2/faq211b.zip from the same place you get 
DJGPP), and the tutorials it refers you to.

>  For instance, this is a Turbo C proggy which oes just that:
> 
>  /* DOS critical error handler proggy */

DOS critical error interrupt doesn't need to be caught in a DJGPP program,
in most cases.  Most DPMI environments will automatically catch the
critical error interrupt and return a failure indication, so what your
program sees is a failed DOS function.  For more info and some caveats,
see section 22.12 of the FAQ. 

> It seems to me that DJGPP doesn't have the keyword "interrupt".

Right, it doesn't.

> Also, in the DJGPP documents, there stans that inline assembly can be used
> like for instance __asm__.  This doesn't work.  Am I missing something, or
> am I maybe missing a installation file?

Sections 17.1 and 18.13 of the DJGPP FAQ explain this in some detail.

- Raw text -


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