comparison 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 40edb7de3857
comparison
equal deleted inserted replaced
563:8c6c3363e18e 564:87f904e2b304
282 case E_UNKNOWN_OPERATION: return "Unknown operation"; 282 case E_UNKNOWN_OPERATION: return "Unknown operation";
283 case E_ORG_NOT_FOUND: return "Previous ORG not found"; 283 case E_ORG_NOT_FOUND: return "Previous ORG not found";
284 case E_COMPLEX_INCOMPLETE: return "Incomplete expression too complex"; 284 case E_COMPLEX_INCOMPLETE: return "Incomplete expression too complex";
285 case E_USER_SPECIFIED: return "User Specified:"; 285 case E_USER_SPECIFIED: return "User Specified:";
286 case E_ILL5: return "Illegal 5 bit offset"; 286 case E_ILL5: return "Illegal 5 bit offset";
287 case E_INCLUDEBIN_ILL_START: return "Start value out of range";
288 case E_INCLUDEBIN_ILL_LENGTH: return "Length value out of range";
287 289
288 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT"; 290 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT";
289 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition"; 291 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition";
290 case W_NOT_SUPPORTED: return "Not supported"; 292 case W_NOT_SUPPORTED: return "Not supported";
291 case W_OPERAND_SIZE: return "Operand size larger than required"; 293 case W_OPERAND_SIZE: return "Operand size larger than required";