summaryrefslogtreecommitdiff
path: root/extras/analyze_texts.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-01-19 13:09:25 -0600
committerBryan Bishop <kanzure@gmail.com>2012-01-19 13:09:25 -0600
commitbed1f9de97a0b3e8728659667e778f1e0458ad46 (patch)
tree8f1fd1c081cd1779ba05685463a427976a0e0438 /extras/analyze_texts.py
parentdac8f912af2415f2759ed106750279b463422bd4 (diff)
minor touch-ups and missed TX_FARs
hg-commit-id: 584a09bfde83
Diffstat (limited to 'extras/analyze_texts.py')
-rw-r--r--extras/analyze_texts.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/extras/analyze_texts.py b/extras/analyze_texts.py
index fa21e3a5..733d0d61 100644
--- a/extras/analyze_texts.py
+++ b/extras/analyze_texts.py
@@ -488,6 +488,16 @@ def text_pretty_printer_at(start_address, label="SomeLabel"):
output += "\n" + spacing + "db $11"
byte_count += 1
had_db_last = True
+ elif command["type"] == 0x6: #wait for keypress
+ if first_line:
+ output = "\n" + label + ": ; " + hex(start_address)
+ first_line = False
+ if had_db_last:
+ output += ", $6"
+ else:
+ output += "\n" + spacing + "db $6"
+ byte_count += 1
+ had_db_last = True
else:
print "ERROR in command: " + hex(command["type"])
had_db_last = False