Mercurial > hg > index.cgi
comparison lwasm/pseudo.c @ 543:e10618b48e68
Implement support for dragon format binaries
Implement support for dragon format binaries. As an added bonus,
also implement a variation on raw binaries which guarantees the
whole binary fits in the file. These are the "dragon" and "abs"
output formats.
Based on code submitted by Mike Miller.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 29 Sep 2022 13:59:42 -0600 |
parents | 56c32bc798f8 |
children | ddc7b05a5675 |
comparison
equal
deleted
inserted
replaced
542:f3018ed5e30e | 543:e10618b48e68 |
---|---|
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 && (as -> output_format != OUTPUT_IHEX) && (as -> output_format != OUTPUT_SREC))) | 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) && (as -> output_format != OUTPUT_DRAGON) && (as -> output_format != OUTPUT_ABS)) |
106 { | 106 { |
107 skip_operand(p); | 107 skip_operand(p); |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |