Mail Archives: djgpp/1996/02/20/10:39:12
On 19 Feb 1996, Lance Kalzus wrote:
> I have an application which requires me to trap two hardware interrupts.
> Unfortunately, one of those hardware interrupts is the system timer
> itself. I'd like to trap it while my program is running, have it
> increment a simple counter, and if possible, call the DOS clock handler
> at an appropriate time (this part isn't strictly necessary, but it _is_
> nice to do properly :), and interrupt-return.
You didn't say if you use DJGPP v2 or v1.12. In any case, you should
first read Chapter 18 of the DJGPP FAQ list (available as faq102.zip from
the v1 archives). Then, there is a nice example of using timer
interrupts from DJGPP on SimTel mirrors, look in SimTel/msdos/c directory
for a file called pctime13.zip; it's a good place to start.
- Raw text -