Path: utzoo!attcan!uunet!wuarchive!udel!cis.udel.edu From: shearer@cis.udel.edu (Rob Shearer) Newsgroups: comp.lang.c Subject: Turbo C Interrupt Question Message-ID: <32905@nigel.ee.udel.edu> Date: 9 Oct 90 17:51:15 GMT Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 16 Nntp-Posting-Host: sol.cis.udel.edu Originator: shearer@cis.udel.edu 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@sol.cis.udel.edu