Turbo C Interrupt Question

Rob Shearer shearer at cis.udel.edu
Wed Oct 10 03:51:15 AEST 1990


I have hooked the INT 8 interrupt (IRQ 0, Clock_Tick Interrupt) on my 
PC.  Normaly I want the routine to happen on a set schedule..  but there
are times that I want the INT 8 routines to occur out of sync and I call
it from another part of my code with a geninterrupt(8);  (I take care
of the REAL Clock no matter what...).  Can you Gurus inform me how to
detect if the interrupt was hardware or software driven??  It is all
probably in the PIC... but ALL my reference books basically inform me that
there IS such a think as the PIC.  

(Before anyone tells me to hook INT 1C instead..  I NEED INT 8, that is why
I hooked it...  and if I can differentiate between a hw and sw interrupt
then life is fantastic!)

Thanks in Advance... 
Robb Shearer
shearer at sol.cis.udel.edu



More information about the Comp.lang.c mailing list