diff lwasm/lwasm.c @ 470:2c1c5dd84024

Add << prefix to force 5 bit offsets in indexed modes Rounding out the compliment of operand size prefixes, we now have "<<" to mean "force 5 bits". According to Steve Bjork, this was the "official" way to do this since 1980. However, I have no official Motorola source for that. It does suggest that the choice of "<<" is consistent with other (historical) assemblers, though. Either way, it seems the most logical choice while avoiding any conflicts with legal source code, so "<<" it is.
author William Astle <lost@l-w.ca>
date Mon, 23 Jul 2018 17:45:18 -0600
parents cad5937314cb
children 8181ddd707f1
line wrap: on
line diff
--- a/lwasm/lwasm.c	Sun Mar 04 10:24:58 2018 -0700
+++ b/lwasm/lwasm.c	Mon Jul 23 17:45:18 2018 -0600
@@ -283,6 +283,7 @@
 		case E_ORG_NOT_FOUND:			return "Previous ORG not found";
 		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 W_ENDSTRUCT_WITHOUT:		return "ENDSTRUCT without STRUCT";
 		case W_DUPLICATE_SECTION:		return "Section flags can only be specified the first time; ignoring duplicate definition";