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
/
SGTOOL11.ARC
/
VDCREAD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-25
|
494b
|
26 lines
/*
SG C Tools 1.1
(C) 1993 Steve Goldsmith
All Rights Reserved
Print all the VDC registers with printf().
Compiled with HI-TECH C 3.09 (CP/M-80).
To compile with HI-TECH C and SG C Tools source on same disk use:
C VDCREAD.C -LC128
*/
#include <hitech.h>
#include <vdc.h>
main()
{
unsigned char I;
printf("\nC128 VDC registers dump:\n\n");
for(I=0; I<=vdcRamRefresh; I++) /* print all 37 vdc registers */
printf("%4u= %4u",I,invdc(I));
printf("\n");
}