Date: Wed, 10 Nov 1999 14:28:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Marius Myburg 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.