Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!europa.asd.contel.com!wlbr!lonex.radc.af.mil!nortond From: nortond@lonexb.radc.af.mil (Douglas A. Norton) Newsgroups: comp.lang.pascal Subject: Interrupts-IRQ? Keywords: Interrupt IRQ Message-ID: <1991Jun3.212233.24260@lonex.radc.af.mil> Date: 3 Jun 91 21:22:33 GMT Sender: Doug Norton Rome Laboratory nortond@lonex.radc.af.mil Organization: RADC Lines: 29 Nntp-Posting-Host: lonexb.radc.af.mil Could someone double check what I'm doing... I have a board which can be set to interrupt on a IRQ#, I want to setup an interrupt procedure in Turbo pascal, heres what I do -Get to old vector -Set the new vector to @MyHandler(Flags,.... : word); --my procedure MyHandler is like this... procedure MyHandler(Flags,.... : word); interrupt; begin { do stuff } end; -When I'm done with the interrupt I set the vector back to the old one I am using IRQ3 which is what COM2: is but I don't use it because I don't have a COM2. I reset the vector to the old one anyway when I'm done. Now here's where I could be wrong, when I set the vector I uses IRQ#+8 so I'm setting vector number 11 in the case of IRQ3. Am I wrong??? I hope I'm wrong someplace and its not the board. Please respond to my internet address, I'll summerize responses to this forum... Thanks Doug Norton nortond@lonex.radc.af.mil