Xref: utzoo comp.sys.att:9715 comp.sys.ibm.pc.programmer:1788 Path: utzoo!utgpu!cunews!bcars8!bnrgate!bigsur!bnr-rsc!mlord From: mlord@bnr-rsc.UUCP (Mark Lord) Newsgroups: comp.sys.att,comp.sys.ibm.pc.programmer Subject: Re: How does DOS time work? Message-ID: <3163@bnr-rsc.UUCP> Date: 4 Jun 90 16:03:12 GMT References: <1094.266605B1@onebdos.UUCP> <980@soleil.UUCP> Reply-To: mlord@bnr-rsc.UUCP (Mark Lord) Organization: Bell-Northern Research, Ottawa, Canada Lines: 33 In article <980@soleil.UUCP> gopstein@soleil.UUCP (Rich Gopstein) writes: > >I pulled out the schematics for the 6300 last night, and armed with my >calculator, determined that the 6300's timer tick runs at 18.75 ticks/sec >instead of 18.2 as in a standard PC. The easiest solution would be to >slow the timer down to 18.2 tick/secs, but the timer is already running >as slow as it can be set... > >The question is: How can I get generic DOS (4.0 in my case), to keep >the correct time given the 18.75Hz clock rate? Well.. looks like a good application for writing a custom TSR. You need some code to intercept the timer interrupts and cause every 34th one to be skipped. The more technically knowlegeable folks out there may correct me, but my understanding is that the DOS "clock" is maintained in software. Some internal "clock" variables get incremented on each timer interrupt, roughly 18 times per second (as you have found). Since this interrupt is occuring too often, you need to write code to intercept this, and NOT chain to other handlers on each 34th interrupt 18.75 / (18.75 - 18.20) = 34 (approx). To avoid problems with other software that might chain to this interrupt, it is probably best that this TSR be loaded LAST from the autoexec.bat file. On second thought, maybe it would HELP other software.. in which case load it first! Have fun. -- ______Mark S. Lord______________________ ______________________________ | ..uunet!bnrgate!carrsc!mlord | These are only MY opinions. | | or: bnr-rsc!mlord@bnrgate | I charge for official views. | |________________________________________|______________________________|