Mail Archives: djgpp/1997/10/28/15:31:23
Michael Mauch wrote:
> > What I'm trying to get, ultimately, is a reliable 200hz interrupt.
>
> On plain DOS you can use the libc function uclock(), on Windows/Win95
> you can use the puclock() function that is in the DJGPP mail archives
> at www.delorie.com (search for puclock()).
That would provide a high-resolution timer, but not an interrupt per se,
or would it?
I can get PCTIME running at the right speed by removing this line from
pm_new8h():
++ticks_8h;
So it would seem that under Windows, both the protected mode and real
mode handlers get called with every timer tick, and under DOS only the
real mode handler gets called. I don't understand this, and would
rather not blindly hack at the code without knowing why a modification
seems to work...
Mark
--
Remove the "nospam." to reply by email.
- Raw text -