Mail Archives: djgpp/1999/11/10/10:51:44
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 -