summaryrefslogtreecommitdiff
path: root/preprocessor.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-27 16:56:24 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-27 16:56:24 -0500
commite5586a5aa2293ba601882f254c633d712d53cdca (patch)
treeef93221c4fb1818390244de5d61750fafe7b5afe /preprocessor.py
parentd9a2680c71f06bd4c9134b02b1aaaa0286c0567c (diff)
text preprocessor now supports ending-apostrophes in text
Diffstat (limited to 'preprocessor.py')
-rw-r--r--preprocessor.py4
1 files 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