Mercurial > hg > index.cgi
comparison lwlink/main.c @ 548:cde1a5a48636
Add IHEX output format to lwlink
At the request of Craig Iannello who provided a small bribe, IHEX output
format is now available in lwlink. At least a first pass version of it.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 16 Mar 2023 16:59:50 -0600 |
parents | 1744f2d1a821 |
children |
comparison
equal
deleted
inserted
replaced
547:33e37b3d98cf | 548:cde1a5a48636 |
---|---|
90 outformat = OUTPUT_LWEX0; | 90 outformat = OUTPUT_LWEX0; |
91 else if (!strcasecmp(arg, "os9")) | 91 else if (!strcasecmp(arg, "os9")) |
92 outformat = OUTPUT_OS9; | 92 outformat = OUTPUT_OS9; |
93 else if (!strcasecmp(arg, "srec")) | 93 else if (!strcasecmp(arg, "srec")) |
94 outformat = OUTPUT_SREC; | 94 outformat = OUTPUT_SREC; |
95 else if (!strcasecmp(arg, "ihex")) | |
96 outformat = OUTPUT_IHEX; | |
95 else | 97 else |
96 { | 98 { |
97 fprintf(stderr, "Invalid output format: %s\n", arg); | 99 fprintf(stderr, "Invalid output format: %s\n", arg); |
98 exit(1); | 100 exit(1); |
99 } | 101 } |
139 { "output", 'o', "FILE", 0, | 141 { "output", 'o', "FILE", 0, |
140 "Output to FILE"}, | 142 "Output to FILE"}, |
141 { "debug", 'd', 0, 0, | 143 { "debug", 'd', 0, 0, |
142 "Set debug mode"}, | 144 "Set debug mode"}, |
143 { "format", 'f', "TYPE", 0, | 145 { "format", 'f', "TYPE", 0, |
144 "Select output format: decb, raw, lwex, os9, srec"}, | 146 "Select output format: decb, raw, lwex, os9, srec, ihex"}, |
145 { "decb", 'b', 0, 0, | 147 { "decb", 'b', 0, 0, |
146 "Generate DECB .bin format output, equivalent of --format=decb"}, | 148 "Generate DECB .bin format output, equivalent of --format=decb"}, |
147 { "raw", 'r', 0, 0, | 149 { "raw", 'r', 0, 0, |
148 "Generate raw binary format output, equivalent of --format=raw"}, | 150 "Generate raw binary format output, equivalent of --format=raw"}, |
149 { "script", 's', "FILE", 0, | 151 { "script", 's', "FILE", 0, |