Mail Archives: djgpp/1998/02/09/10:08:39
On Mon, 9 Feb 1998, Yedema wrote:
> Can anyone tell me how I can trap interrupts in djgpp without using the dpmi
> stuff?
You can't, in general. You can only catch those interrupts which are
converted to signals. SIGINT, SIGALRM and SIGTRAP are the only ones
which are.
> Info says that signals >255 are the interrupts (if I remember
> correctly) .
Signals < 256 were *supposed* to be generated by interrupts, but it has
never been implemented.
> I'd like to trap COM1, COM2 and the keyboard interrupt see.
The only way is the one described in the FAQ and in several other
DJGPP-oriented tutorials. You have to use the DPMI functions.
- Raw text -