|
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 - metrics - download
Length: 731 (0x2db) Types: TextFile Notes: UNIX file Names: »t.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code └─⟦2d53db1df⟧ UNIX Filesystem └─⟦this⟧ »frankh/tmp/t.c«
#include <stdio.h> #define PASS ((unsigned short *)(0x31001696L)) #define ERRORS ((unsigned short *)(0x31001900L)) #define BADBLK ((unsigned short *)(0x31001A04L)) #define TIMEOUTS ((unsigned short *)(0x310016D8L)) #define YSPLIT 512 #define XMAX 1024 #define YMAX 800 #define BPW 16 #define XB (XMAX/BPW) main(argc,argv) char **argv; { unsigned short n; unsigned int *pass; int *errors, *badblk, *timeouts; unsigned short c = 0; pass = PASS; errors = ERRORS; badblk = BADBLK; timeouts = TIMEOUTS; printf(" errors = %d, timeouts = %d, bad blocks = %d, passes = %u\n", *errors, *timeouts, *badblk, *pass); } /* 31001A04 A badblk int 31001900 A errors int 31001696 A pass unsigned int 310016D8 A timeouts int */