URL
https://opencores.org/ocsvn/eco32/eco32/trunk
[/] [eco32/] [trunk/] [tools/] [bin2exo/] [bin2exo.c] - Diff between revs 39 and 66
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 39 |
Rev 66 |
Line 78... |
Line 78... |
}
|
}
|
outfile = fopen(outfileStr, "wt");
|
outfile = fopen(outfileStr, "wt");
|
if (outfile == NULL) {
|
if (outfile == NULL) {
|
error("cannot open output file %s", outfileStr);
|
error("cannot open output file %s", outfileStr);
|
}
|
}
|
fprintf(outfile, "S00600004844521B\n");
|
|
while (1) {
|
while (1) {
|
chksum = 0;
|
chksum = 0;
|
for (numBytes = 0; numBytes < 16; numBytes++) {
|
for (numBytes = 0; numBytes < 16; numBytes++) {
|
c = fgetc(infile);
|
c = fgetc(infile);
|
if (c == EOF) {
|
if (c == EOF) {
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.