comparison lwasm/pseudo.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 74d0c394666e
comparison
equal deleted inserted replaced
442:61580fc48f98 443:999ae00d0919
100 if (CURPRAGMA(l, PRAGMA_M80EXT) && input_isinclude(as)) 100 if (CURPRAGMA(l, PRAGMA_M80EXT) && input_isinclude(as))
101 return; /* ignore END inside includes */ 101 return; /* ignore END inside includes */
102 102
103 as->endseen = 1; 103 as->endseen = 1;
104 104
105 if ((as -> output_format != OUTPUT_DECB) && (as -> output_format != OUTPUT_BASIC) && (as -> output_format != OUTPUT_LWMOD)) 105 if ((as -> output_format != OUTPUT_DECB) && (as -> output_format != OUTPUT_BASIC) && (as -> output_format != OUTPUT_LWMOD && (as -> output_format != OUTPUT_IHEX) && (as -> output_format != OUTPUT_SREC)))
106 { 106 {
107 skip_operand(p); 107 skip_operand(p);
108 return; 108 return;
109 } 109 }
110 110