Forum archive
Problem with timer handler
- I used Ken's timer handler. But it is redculosly fast. Please help me in slowing it down!
Here is the code for initalizing the timer handler:
outp(0x43, 54);
outp(0x40, 9942 & 255);
outp(0x40, 9942 >> 8);
oldtimerhandler = _dos_getvect(0x8);
_disable();
_dos_setvect(0x8, timerhandler);
_enable();
And here's the code for the autual timer handler:void __interrupt __far timerhandler()
{
totalclock++;
keytimerstuff();
outp(0x20, 0x20);
}