Mail Archives: djgpp/1996/04/01/08:37:00
On Sun, 31 Mar 1996, Tom Seddon wrote:
> I have written a program (BBC emulator) using djgpp 1.12maint2, and
> sometimes when I quit it it prints 'Unsupported interupt 0x0d' and bombs
> to the DOS prompt. I hook the keyboard interrupt vector, but when this
> happens the vector doesn't become unhooked, and I have to press the reset
> button. The 'terminate' routine does the following:
The keyboard interrupt is treated specially by DJGPP, in a way that you
cannot unhook it. The DJGPP FAQ list (faq102.zip from the same place you
get DJGPP) tells this explicitly in section 18.8. I think that if you
don't unhook the keyboard interrupt and just exit, you'll be fine,
because go32 will restore the vectors on exit anyway.
- Raw text -