diff 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
line wrap: on
line diff
--- a/lwlink/main.c	Thu Mar 16 16:18:13 2023 -0600
+++ b/lwlink/main.c	Thu Mar 16 16:59:50 2023 -0600
@@ -92,6 +92,8 @@
 			outformat = OUTPUT_OS9;
 		else if (!strcasecmp(arg, "srec"))
 			outformat = OUTPUT_SREC;
+		else if (!strcasecmp(arg, "ihex"))
+			outformat = OUTPUT_IHEX;
 		else
 		{
 			fprintf(stderr, "Invalid output format: %s\n", arg);
@@ -141,7 +143,7 @@
 	{ "debug",		'd',	0,		0,
 				"Set debug mode"},
 	{ "format",		'f',	"TYPE",	0,
-				"Select output format: decb, raw, lwex, os9, srec"},
+				"Select output format: decb, raw, lwex, os9, srec, ihex"},
 	{ "decb",		'b',	0,		0,
 				"Generate DECB .bin format output, equivalent of --format=decb"},
 	{ "raw",		'r',	0,		0,