From e5586a5aa2293ba601882f254c633d712d53cdca Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 27 Apr 2012 16:56:24 -0500 Subject: [PATCH] text preprocessor now supports ending-apostrophes in text --- preprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preprocessor.py b/preprocessor.py index bd60141cd..3eff8bae8 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -351,7 +351,7 @@ def quote_translator(asm): token = token[1:] # certain apostrophe-letter pairs are only a single byte - if char == "'" and \ + if char == "'" and len(token) > 0 and \ (token[0] == "d" or \ token[0] == "l" or \ token[0] == "m" or \ @@ -491,7 +491,7 @@ def macro_translator(macro, token, line): # write the pointer second sys.stdout.write("dw " + params[index+1] + "\n") index += 2 - elif size == 3 and (issubclass(param_klass, PointerLabelAfterBank): + elif size == 3 and issubclass(param_klass, PointerLabelAfterBank): # write the pointer first sys.stdout.write("dw " + params[index] + "\n") # write the bank second