/* SG C Tools 1.3 (C) 1993 Steve Goldsmith All Rights Reserved Compiled with HI-TECH C 3.09 (CP/M-80). */ #include #include #include /* set cia timer a and control reg a */ void settimeracia (ushort C, ushort Latch, uchar CtrlReg) { outp(C+ciaTimerALo,(uchar) Latch); /* timer latch lo */ outp(C+ciaTimerAHi,(uchar) (Latch >> 8)); /* timer latch hi */ outp(C+ciaControlA,CtrlReg); /* set timer controls */ }