|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 947 (0x3b3) Types: TextFile Notes: UNIX file Names: »flib.h«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code └─⟦2d53db1df⟧ UNIX Filesystem └─ ⟦this⟧ »frankh/lib/flib.h«
/* * */ #include <sys/timeb.h> #include <stdio.h> #include <time.h> #include <sys/stat.h> #include <access.h> #define BLKSIZ 512 /* * 31001A04 A badblk int * 31001900 A errors int * 31001696 A pass unsigned int * 310016D8 A timeouts int * * These variables were set by the driver, WDSCAN. Note that a special * version of coherent (md.s) is required to access these locations. * Normally segment 31 is system only. The special version of coherent * lowers the protection level of seg 31 to 0. * The variables are accessed using pointers. */ #define PASS ((unsigned short *)(0x31001696L)) #define ERRORS ((unsigned short *)(0x31001900L)) #define BADBLK ((unsigned short *)(0x31001A04L)) #define TIMEOUTS ((unsigned short *)(0x310016D8L)) int *errors, *badblk, *timeouts, errsup; long bgblk, atol(); char *itoa(), *ctime(); unsigned int *pass; unsigned long xrand(); unsigned char buf[512]; extern unsigned char pattern[512];