FreeCalypso > hg > freecalypso-tools
diff miscutil/srec-regions.c @ 624:7485e75d9477
srec-regions: removed unnecessary prohibition against address going backward
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 27 Feb 2020 08:12:11 +0000 |
parents | 89e9e79a7f55 |
children | 7ef3343161d6 |
line wrap: on
line diff
--- a/miscutil/srec-regions.c Thu Feb 27 08:09:19 2020 +0000 +++ b/miscutil/srec-regions.c Thu Feb 27 08:12:11 2020 +0000 @@ -153,13 +153,7 @@ state = 2; continue; } - if (curaddr < region_end) { - fprintf(stderr, - "%s line %d: address going backwards\n", - infname, lineno); - exit(1); - } - if (curaddr > region_end) { + if (curaddr != region_end) { printf("0x%08lX to 0x%08lX (%lu bytes)\n", region_start, region_end, region_end - region_start);