/*
* This program will restore your hard disk's track zero data. It
* is specifically designed to provide a remedy against the the so-called
* "Columbus day" virus.
*
* This program may be freely copied.
*
* Author: John Clason, KZ1O [70441,2456]
*
*/
void error(int code)
{
switch (code) {
case 1:
fprintf(stderr, "Unable to allocate enough memory\n");
break;
case 2:
fprintf(stderr, "Unable to open file A:TRACK.000\n");
break;
case 4:
fprintf(stderr, "Unable to complete reading floppy disk\n");
break;
default:
fprintf(stderr, "Unknown error occurred: %d\n", code);
break;
}
exit(code);
}
int main(void)
{
char *buffer;
unsigned cx, dx;
int maxhead, maxsectors, h;
int fd;
unsigned bytes;
printf("Restoring hard disk track zero from A:TRACK.000\n"
"More public domain software from John Clason [70441,2456]\n");