comparison miscutil/srec-regions.c @ 625:7ef3343161d6

srec-regions: report the S7 address as well
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 28 Feb 2020 05:50:47 +0000
parents 7485e75d9477
children
comparison
equal deleted inserted replaced
624:7485e75d9477 625:7ef3343161d6
160 region_start = curaddr; 160 region_start = curaddr;
161 } 161 }
162 region_end = curaddr + datalen; 162 region_end = curaddr + datalen;
163 continue; 163 continue;
164 case '7': 164 case '7':
165 if (srecbin[0] < 5) {
166 fprintf(stderr,
167 "%s line %d: S7 record is too short\n",
168 infname, lineno);
169 exit(1);
170 }
165 printf("0x%08lX to 0x%08lX (%lu bytes)\n", 171 printf("0x%08lX to 0x%08lX (%lu bytes)\n",
166 region_start, region_end, 172 region_start, region_end,
167 region_end - region_start); 173 region_end - region_start);
174 printf("S7 address 0x%02X%02X%02X%02X\n", srecbin[1],
175 srecbin[2], srecbin[3], srecbin[4]);
168 exit(0); 176 exit(0);
169 default: 177 default:
170 abort(); 178 abort();
171 } 179 }
172 } 180 }