diff lwasm/lwasm.c @ 564:87f904e2b304

Add offset and length operands (optional) to includebin This addition is based on a patch from Tim Lindner <tlindner@macmess.org>. While the original logic of the patch was not quite correct, the basic idea is. So with some edits to the logic, the feature goes in.
author William Astle <lost@l-w.ca>
date Thu, 21 Dec 2023 22:14:25 -0700
parents 8181ddd707f1
children
line wrap: on
line diff
--- a/lwasm/lwasm.c	Fri Dec 01 21:16:54 2023 -0700
+++ b/lwasm/lwasm.c	Thu Dec 21 22:14:25 2023 -0700
@@ -284,6 +284,8 @@
 		case E_COMPLEX_INCOMPLETE:      return "Incomplete expression too complex";
 		case E_USER_SPECIFIED:			return "User Specified:";
 		case E_ILL5:					return "Illegal 5 bit offset";
+		case E_INCLUDEBIN_ILL_START: 	return "Start value out of range";
+		case E_INCLUDEBIN_ILL_LENGTH:	return "Length value out of range";
 
 		case W_ENDSTRUCT_WITHOUT:		return "ENDSTRUCT without STRUCT";
 		case W_DUPLICATE_SECTION:		return "Section flags can only be specified the first time; ignoring duplicate definition";