home *** CD-ROM | disk | FTP | other *** search
- /*
- SG C Tools 1.2
-
- (C) 1993 Steve Goldsmith
- All Rights Reserved
-
- VDC registers dump using 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()
- {
- uchar I;
-
- printf("\nC128 VDC register dump:\n\n");
- for(I=0; I<=vdcRamRefresh; I++) /* print all 37 vdc registers */
- printf("%3u = %02x",I,invdc(I));
- printf("\n");
- }
-