summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-04 20:13:35 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-04 20:13:35 -0500
commita140713e3809c9108695d449d326b1a64255a91a (patch)
treeb72f7d44bc88534f15adcb3e79b3a5d52942ae59
parent854c3d7f508f0f30d64ee65a65860cbb434cfc0a (diff)
handle $57 in MainText.to_asm
original-commit-id: 133bcb70498f53cef584016615156cbe5bb7b447
-rw-r--r--crystal.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index c4465b2..8c55e35 100644
--- a/crystal.py
+++ b/crystal.py
@@ -1897,6 +1897,21 @@ class MainText(TextCommand):
new_line = True
was_comma = False
end = True
+ elif byte == 0x57:
+ # close any quotes
+ if in_quotes:
+ output += "\""
+ was_comma = False
+
+ if not was_comma:
+ output += ", "
+
+ output += "$57\n"
+
+ in_quotes = False
+ new_line = True
+ was_comma = False
+ end = True
elif byte in chars.keys():
# figure out what the character actually is
char = chars[byte]