From 133bcb70498f53cef584016615156cbe5bb7b447 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 4 May 2012 20:13:35 -0500 Subject: [PATCH] handle $57 in MainText.to_asm --- extras/crystal.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/extras/crystal.py b/extras/crystal.py index c4465b20d..8c55e35f6 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -1893,6 +1893,21 @@ class MainText(TextCommand): output += "\"@\"\n" # reset everything + in_quotes = False + 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