[comp.binaries.ibm.pc] v09i243: timer, restore hardware timer settings

ibmbin-request@crdgw1.crd.ge.com (01/16/91)

Checksum: 2344620522  (Verify with "brik -cv")
Posting-number: Volume 09, Issue 243
Submitted-by: rschmidt@copper.ucs.indiana.edu
Archive-name: timer/part01

Reviewed by rschmidt@copper.ucs.indiana.edu (submitter):

The problem with the otherwise excellent Star Goose game can be remedied
by running this program immediately after quiting Star Goose.  This short
program resets the tick timing to 18.2 ticks per second, which is the 
standard for all 80x86 machines (IBM PC/XT/AT, PS/2, and compatibles).
Users will find that their clock will run at the correct speed after each
use of TIMER.EXE.  They will still have to manually type in the correct
time, but at least they are saved the need for a system reboot to keep their
machine from going wild.

The authors of Star Goose could fix this problem permanently by correctly
handling their use of interrupt 08h.  For one, they could have written the
program so that after the ticks are quadrupled, every fourth tick could be
redirected to the system clock rather than every tick.  This would keep
current time correct.  Then, as they end the program, they could have included
the heart of this short program to return the timer to normal speed.

Until they do, the many afflicted subsribers of cbip can just add TIMER.EXE
to a batch file to run Star Goose:

    GOOSE
    TIMER
    TIME

((Sigh ...))



[
Checksums obtained with the 4.3BSD "sum" or System V "sum -r" command.

checksum     size (bytes)  file (between BEGIN--cut and END--cut lines)
   36327         1114      part01

checksum     size (bytes)  file
   50394          787      timer.zoo

-- bill
]

timer part01/01
BEGIN--cut here--cut here
begin 644 timer.zoo
M6D]/(#(N,#`@07)C:&EV92X:``#<I\3]*@```-;___\"``$````````!W*?$
M_0(!4@$``'$```"=%0:S5P,9`0``X0````$```````````!T:6UE<BYA<VT`
M````"@`4X68`````I`%`````0"DC*```2U!)0H5)$1`BI)294X8.""IIVI21
M\S#-F#4@Z+P!$0.'"QD@DKBA,U%.'3ATYH"`,Q'$E#)CWK@A(Z*!`IL)DA`I
M$H0)3B)/IDPI<@1GDR<[F228TR8,&S8XIU`),F1)`ADU;-C$.01ID:%%;RJ8
M0B>,'#HZ<+9Y8R=!&#PL@)`)4U8MVP1DYK!XNU5!@C%LTMAMZY0%C!DVT.!\
M4X=.`A@T9J#9"]7O6L)L#,-0[)>Q8\B;*2]N_)A&:*<XY]`1K*`(GC1H![N%
M"WD(C,TXTXR\&H,SSB).B"0@:Y:.S8#<I\3]`@';`@``F0$``)T5$;/92\H$
M``!"`0```0```````````'1I;65R+F5X90`````*`!2<W`````"D`4````!`
M*2,H``";:`$10`"```!``%CX[Y_!@PLC`O`1$>$^&&KD2-S(L2-'A!Y#BAQ)
MLJ3)DRA3JES)LJ7+ES!CRIQ)LZ;-D;@,.L*F#Y8-<T-@`3`'A.@^7`"8-`MQ
MLZG3IU"C2J6Y3TH"`1XB$@"0=>%#B!(70$2($,0`DV<S<-RJ-H)$@UL1&B0[
M%J*!69TJB%W(`,!9!P`*`'@`P```"``0`'"K`(`$`'TG``!,X3``"XL!7`!0
M&61$S!+IB@:PM^-6L`8!-?SW)Z)@``]/JV[8NO#"TX8CSF:M&&SOB/\B)O"Z
ML+'$AL5O\]VX^E\#Y1$))Y:(&(#QA8!M1T2QT#/D[@LE'X]X8.%OTN8EKD@>
M4<7"W`M)=)1?<>&(CO>UV@^]W_5"(3IP0442310AA0M!3-$$``,6*`4`4U`1
MA!14`%`$%DE4&!#<I\3]`@``````````````````````````````````````
6``````````````````````````#\@P``
`
end
END--cut here--cut here