delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/09/08:13:20

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: IRQ0, INT8, TimerCounter0, and LIBHW
Date: 5 Mar 1997 18:18:59 GMT
Organization: Oxford University
Lines: 17
Message-ID: <5fkdej$a9@news.ox.ac.uk>
References: <331da716 DOT 4515351 AT newsread DOT lerc DOT nasa DOT gov>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019