aboutsummaryrefslogtreecommitdiffstats
path: root/extras/analyze_texts.py
diff options
context:
space:
mode:
authorSanky <gsanky@gmail.com>2012-01-19 23:20:44 +0100
committerSanky <gsanky@gmail.com>2012-01-19 23:20:44 +0100
commit5e4bcfc0b278782dbdfcc5e68365686838741280 (patch)
tree323a9e7965deff8a2f2b903b149b4d4b5df5792b /extras/analyze_texts.py
parentHealParty script (Predef 7) (diff)
parentMerge in Sanky/pokered (W_PARTYMON stuff) (diff)
downloadpokeyellow-5e4bcfc0b278782dbdfcc5e68365686838741280.tar.gz
pokeyellow-5e4bcfc0b278782dbdfcc5e68365686838741280.tar.xz
pokeyellow-5e4bcfc0b278782dbdfcc5e68365686838741280.zip
Merge
hg-commit-id: a3be68843101
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