ref: e5586a5aa2293ba601882f254c633d712d53cdca
parent: d9a2680c71f06bd4c9134b02b1aaaa0286c0567c
author: Bryan Bishop <[email protected]>
date: Fri Apr 27 12:56:24 EDT 2012
text preprocessor now supports ending-apostrophes in text
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -351,7 +351,7 @@
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 @@
# 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