home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
Geneve
/
9640news
/
CAT36
/
EMULSRC.ZIP
/
A99CONVR.C
next >
Wrap
Text File
|
1993-04-14
|
519b
|
28 lines
/* This utility strips off the TIFILES header, produced by the LOADER
utility, and swaps the hi- and lo- order bytes.
*/
#include <stdio.h>
main()
{
int i,hibyte,lobyte;
FILE *infile,*outfile;
infile=fopen("diskrom.bin","r+b");
outfile=fopen("diskr.bin","w+b");
printf("\n\n\n");
for(i=0;i<134;i++) fgetc(infile);
while(!feof(infile))
{
hibyte=fgetc(infile);
lobyte=fgetc(infile);
fputc(lobyte,outfile);
fputc(hibyte,outfile);
}
fclose(infile);
fclose(outfile);
}