Mercurial > hg > index.cgi
comparison lwasm/main.c @ 321:d4ac484d0ec6
Add support for Motorola SREC and Intel Hex output formats to lwasm.
Add support for creating SREC (--format=srec), Intel Hex (--format=ihex),
and a generic hexadecimal (--format=hex) output formats.
author | Tom LeMense <tlemense@yahoo.com> |
---|---|
date | Mon, 03 Mar 2014 21:30:38 -0700 |
parents | 49010c6653e7 |
children | 507f442dc71e |
comparison
equal
deleted
inserted
replaced
320:a640ff4ed95f | 321:d4ac484d0ec6 |
---|---|
152 as -> output_format = OUTPUT_RAW; | 152 as -> output_format = OUTPUT_RAW; |
153 else if (!strcasecmp(arg, "rawrel")) | 153 else if (!strcasecmp(arg, "rawrel")) |
154 as -> output_format = OUTPUT_RAWREL; | 154 as -> output_format = OUTPUT_RAWREL; |
155 else if (!strcasecmp(arg, "obj")) | 155 else if (!strcasecmp(arg, "obj")) |
156 as -> output_format = OUTPUT_OBJ; | 156 as -> output_format = OUTPUT_OBJ; |
157 else if (!strcasecmp(arg, "srec")) | |
158 as -> output_format = OUTPUT_SREC; | |
159 else if (!strcasecmp(arg, "ihex")) | |
160 as -> output_format = OUTPUT_IHEX; | |
161 else if (!strcasecmp(arg, "hex")) | |
162 as -> output_format = OUTPUT_HEX; | |
157 else if (!strcasecmp(arg, "os9")) | 163 else if (!strcasecmp(arg, "os9")) |
158 { | 164 { |
159 as -> pragmas |= PRAGMA_DOLLARNOTLOCAL; | 165 as -> pragmas |= PRAGMA_DOLLARNOTLOCAL; |
160 as -> output_format = OUTPUT_OS9; | 166 as -> output_format = OUTPUT_OS9; |
161 } | 167 } |