home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ENTERPRS
/
CPM
/
UTILS
/
S
/
SGTOOL13.ARC
/
CIA.ARC
/
CIATIMAS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-28
|
487b
|
22 lines
/*
SG C Tools 1.3
(C) 1993 Steve Goldsmith
All Rights Reserved
Compiled with HI-TECH C 3.09 (CP/M-80).
*/
#include <sys.h>
#include <hitech.h>
#include <cia.h>
/* 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 */
}