/* * Convert a data file into a .S file suitable for assembly. * This reads from stdin and writes to stdout and takes a single * argument for the name of the symbol in the assembly file. */ #include int main(int argc, char *argv[]) { unsigned char buf[4096]; size_t amt; size_t i; int col = 0; char *name; if (argc != 2) { fprintf(stderr, "usage: %s NAME < DAT_FILE > ASM_FILE\n", argv[0]); for (i=0; i