Mercurial > hg > index.cgi
diff lwlink/main.c @ 344:55c1f9a321e9
Add S-record output support to lwlink
Thanks to a patch from Joachim Ga?ler <achim@diegasslers.de>, lwlink now has
output support for S-records. This is output only - it does not add input
support for S-record files.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 09 Apr 2015 12:27:33 -0600 |
parents | ce1fdc8d6568 |
children | 4130ffdeb5c8 |
line wrap: on
line diff
--- a/lwlink/main.c Mon Mar 16 09:27:20 2015 -0600 +++ b/lwlink/main.c Thu Apr 09 12:27:33 2015 -0600 @@ -81,6 +81,8 @@ outformat = OUTPUT_LWEX0; else if (!strcasecmp(arg, "os9")) outformat = OUTPUT_OS9; + else if (!strcasecmp(arg, "srec")) + outformat = OUTPUT_SREC; else { fprintf(stderr, "Invalid output format: %s\n", arg); @@ -130,7 +132,7 @@ { "debug", 'd', 0, 0, "Set debug mode"}, { "format", 'f', "TYPE", 0, - "Select output format: decb, raw, lwex, os9"}, + "Select output format: decb, raw, lwex, os9, srec"}, { "decb", 'b', 0, 0, "Generate DECB .bin format output, equivalent of --format=decb"}, { "raw", 'r', 0, 0,