Using the PIC is not easy, but it will give you accurate time on ALL
machines.
BTW counter 0 is the system timer
counter 1 is for the DRAM refresh
counter 2 is tied to the PC speaker.
if you want to speed up you computer a little you can lower the DRAM
refresh rate.. Works for me, I get about 5% increase... just lower it
until you computer starts to crash then bring it back up a bit.
Anyways Counter 0 calls int 08H which calls int 1CH to adjust the clock
just re-program the clock. save the Int vector for 08H, insert your
code for a new 08H (like 1 rep per call or something) and then have your
code call the old 08H 18.2 times a second (or your clock will mess up)
and that is it.
The Wolfman
___
X OLX 2.1 TD X --T-A+G-L-I+N-E--+M-E-A+S-U-R+I-N-G+--G-A+U-G-E--
--- Maximus 2.02
---------------
* Origin: Digital Encounters * Kamloops BC Canada 250/374-6168 (1:353/710)
|