delorie.com/archives/browse.cgi | search |
From: | Lemponen Olli <l158134 AT proffa DOT cc DOT tut DOT fi> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Interrupts and locking code |
Date: | Thu, 3 Apr 1997 19:06:24 +0300 |
Organization: | Tampere University of Technology |
Message-ID: | <Pine.OSF.3.95.970403185427.29078A-100000@proffa.cc.tut.fi> |
NNTP-Posting-Host: | proffa.cc.tut.fi |
Mime-Version: | 1.0 |
Lines: | 6 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
The second one is easy. Define a static local variable (or global) and everytime the interrupt is called (every 0.5ms) increment it. When it equals 109, call the original dos handler and zero your variable. Olli Lemponen
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |