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
/
CIATODG.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-28
|
401b
|
23 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>
/* get cia time of day clock */
void gettodcia (ushort C, uchar *TOD)
{
TOD[0] = inp(C+ciaTODHrs); /* c = cia chip addr */
TOD[1] = inp(C+ciaTODMin);
TOD[2] = inp(C+ciaTODSec);
TOD[3] = inp(C+ciaTODTen);
}