#ifndef __i386__ # error "This program can't compile or run on non-Intel computers" #else #include #include #include #include #include int main(int argc, char **argv) { /* Counters. */ unsigned int i, j, n; /* For ROM chips larger than 64 KB, a long integer _ is needed for the global byte counter. */ unsigned long k; /* The I/O address of the card. */ unsigned int ioaddr; /* Storage for a byte. */ unsigned char b; // tmp unsigned int cnt = 0; /* Initialize a few things to avoid compiler warnings. */ i=0; j=0; n=0; /* Verify the command-line parameters; write _ out an usage message if needed. */ if (argc != 3) { /* Exactly 2 command line parameters are needed. */ printf("Usage: ./cromutil ioaddr burn