🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2603

Turbo C Interrupt Question

#2603
From: Rob Shearer
Date: Tue, 09 Oct 1990 20:27
17 lines
1216 bytes
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
Technical Details
Message-ID: <32923@nigel.ee.udel.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!cis.udel.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!cis.udel.edu
From: shearer@cis.udel.edu (Rob Shearer)
Newsgroups: comp.os.msdos.programmer
Subject: Turbo C Interrupt Question
Message-ID: <32923@nigel.ee.udel.edu>
Date: 9 Oct 90 20:27:18 GMT
Sender: usenet@ee.udel.edu
Organization: University of Delaware
Lines: 17
Nntp-Posting-Host: sol.cis.udel.edu
Originator: shearer@cis.udel.edu