URL
https://opencores.org/ocsvn/tv80/tv80/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 104 |
Rev 106 |
Line 49... |
Line 49... |
sscanf (line, ":%02x%04x%02x", &rlen, &addr, &rtyp);
|
sscanf (line, ":%02x%04x%02x", &rlen, &addr, &rtyp);
|
lp = line + 9;
|
lp = line + 9;
|
for (int c=0; c<rlen; c++) {
|
for (int c=0; c<rlen; c++) {
|
sscanf (lp, "%02x", &databyte);
|
sscanf (lp, "%02x", &databyte);
|
lp += 2;
|
lp += 2;
|
|
assert ((addr+c) < max);
|
buffer[addr+c] = databyte; dcount++;
|
buffer[addr+c] = databyte; dcount++;
|
assert (dcount < max);
|
//assert (dcount < max);
|
if ((addr+c) > highest) highest = addr+c;
|
if ((addr+c) > highest) highest = addr+c;
|
}
|
}
|
rv = readline (fh, line);
|
rv = readline (fh, line);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.