Mail Archives: djgpp/1997/11/18/03:57:51
On Mon, 17 Nov 1997, Mithrandir wrote:
> I need to hook the timer interrupt. I also need have it called 16000
> times a second (a very high rate, I know).
On what machines (hardware and software) should this program run?
Slower machines (486 and less) and some software configurations (e.g.,
EMM386) will not be able to cope with such a high rate, AFAIK. If you
need this program to run on any platform that supports DJGPP, you will
need to think about a different solution.
> I have read in a document
> called DJGPPASM.DOC that I should use a real mode interrupt. The
> interrupt routine must increment a counter and check if its 0, if so
> increment another counter. Could anybody send me a sample of such a
> routine? Thanks
I suggest that you first write a version which only installs a
protected-mode handler and see how well does it handle the high
interrupt rate. You will need the PM hook anyway, so this is not a
wasted effort.
- Raw text -