comparison lwasm/output.c @ 443:999ae00d0919

Fix up execution address handling for ihex and srec output (lwasm) Make "END <address>" work for srec and ihex targets. Also make ihex actually encode the execution address. Thanks to Mark R V Murray <mark@grondar.org> for this fix.
author William Astle <lost@l-w.ca>
date Mon, 27 Nov 2017 23:10:19 -0700
parents 58cafa61ab40
children 733fd05ca2a8
comparison
equal deleted inserted replaced
442:61580fc48f98 443:999ae00d0919
594 } 594 }
595 595
596 // if any ihex records were output, close with a "01" record 596 // if any ihex records were output, close with a "01" record
597 if (reccnt > 0) 597 if (reccnt > 0)
598 { 598 {
599 fprintf(of, ":00000001FF"); 599 fprintf(of, ":00%04X01FF", as -> execaddr & 0xffff);
600 } 600 }
601 } 601 }
602 602
603 603
604 void write_code_obj_sbadd(sectiontab_t *s, unsigned char b) 604 void write_code_obj_sbadd(sectiontab_t *s, unsigned char b)