Mail Archives: djgpp/1995/06/06/19:33:25
> In my program, I install a new interrupt handler for the system timer (int 8)
> so that I can get 64 ticks per second. After a while, I put the old interrupt
> handler back. Later in the program, when I try to fprintf some values, the
> program crashes with "Unsupported INT 0x0d". The traceback indicates that the
> problem occurred at the fprintf call from my program (_fprintf+103). Is
> there something I need to reset, or clear, or watch out for after I have set
> and reset the timer interrupt handler? The FAQ kind of alludes to this, but I
> didn't understand that part.
Instead of using _go32_dpmi_set..._vector () to put the old handler back, try
to put back the value of the original entry of the IDT. The code to do that should
be similar to the code Ladybug (ftp://oak.oakland.edu/SimTel/msdos/djgpp/ldbg102.zip)
uses to install/deinstall the timer interrupt.
Long.
- Raw text -