DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦6935a8389⟧ TextFile

    Length: 947 (0x3b3)
    Types: TextFile
    Notes: UNIX file
    Names: »flib.h«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »frankh/lib/flib.h« 

TextFile

/*
 *
 */
#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];