From: e-mail DOT address AT end DOT of DOT text (Mike Collins) Newsgroups: comp.os.msdos.djgpp Subject: Please help - Interrupts Date: 19 Jun 1997 16:12:22 GMT Organization: Storage Technology Limited Lines: 40 Message-ID: <5oblp6$4fh@news.network.com> NNTP-Posting-Host: 129.80.172.76 Mime-Version: 1.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am trying to write some interrupt procedures in DJGPP, and I'm having a lot of trouble. At the moment, each time I try to run my program, recovery procedure is to power-cycle the PC - the three-finger salue (CTL-ALT-DEL) doesn't work! What _go32_ routines do I use to accomplish the following? :- 1) Capture the vector of the existing interrupt 2) Replace the standard DOS interrupt vector with a vector to my routine 3) Chain my routine to the existing routine. For example :- 1) Capture the vector to the timer tick (which updates the real-time clock) 2) Replace it with a vector to my routine, which counts clock ticks. 3) Chain my routine to the old one, so the real-time clock still gets its update --------- I also need to know how to capture a vector and use it, but without chaning to the old one. My application here is the serial port input interrupt. I do not need to pass this on for further processing. Many thanks to anyone who replies, Mike. -- Don't just hit "reply" - my E-mail address is bogus to avoid automatic browsers from sending junk mail. Please use collim'at'anubis'dot'network'dot'com Actually, even this doesn't stop all of them ...