comparison 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
comparison
equal deleted inserted replaced
469:9393a6b8886c 470:2c1c5dd84024
281 case E_SYMBOL_DUPE: return "Multiply defined symbol"; 281 case E_SYMBOL_DUPE: return "Multiply defined symbol";
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 287
287 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT"; 288 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT";
288 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition"; 289 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition";
289 case W_NOT_SUPPORTED: return "Not supported"; 290 case W_NOT_SUPPORTED: return "Not supported";
290 case W_OPERAND_SIZE: return "Operand size larger than required"; 291 case W_OPERAND_SIZE: return "Operand size larger than required";