Mail Archives: djgpp/1997/03/09/08:13:20
Clark Carty (carty AT lerc DOT nasa DOT gov) wrote:
: Hello,
: I need to write some code that replaces the ISR for the 18.2 ticks per
: second ISR with my own ISR that generates and INT every 1ms, but
: also keeps track of how many times its called (about 55) and then
: calls the old ISR. Anybody have any sample code either from DJGPP
: _dpmi or _do32 calls or from the LibHW functions?
The Allegro library already does this, and Shawn Hargreaves has stated in
the license that he doesn't mind you stealing bits of his code, so you could
download it and extract the part you're interested in, or look at it to see
how it works (which it does very well, incidentally).
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -