diff options
| author | Sanky <gsanky@gmail.com> | 2012-01-19 23:20:44 +0100 |
|---|---|---|
| committer | Sanky <gsanky@gmail.com> | 2012-01-19 23:20:44 +0100 |
| commit | 5e4bcfc0b278782dbdfcc5e68365686838741280 (patch) | |
| tree | 323a9e7965deff8a2f2b903b149b4d4b5df5792b /extras | |
| parent | HealParty script (Predef 7) (diff) | |
| parent | Merge in Sanky/pokered (W_PARTYMON stuff) (diff) | |
| download | pokeyellow-5e4bcfc0b278782dbdfcc5e68365686838741280.tar.gz pokeyellow-5e4bcfc0b278782dbdfcc5e68365686838741280.tar.xz pokeyellow-5e4bcfc0b278782dbdfcc5e68365686838741280.zip | |
Merge
hg-commit-id: a3be68843101
Diffstat (limited to 'extras')
| -rw-r--r-- | extras/analyze_texts.py | 10 | ||||
| -rw-r--r-- | extras/print_pc_items.py | 9 |
2 files changed, 19 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 diff --git a/extras/print_pc_items.py b/extras/print_pc_items.py new file mode 100644 index 00000000..0fedbedd --- /dev/null +++ b/extras/print_pc_items.py @@ -0,0 +1,9 @@ +#!/usr/bin/python +#author: Bryan Bishop <kanzure@gmail.com> +#date: 2012-01-19 +#spit out some constants + +for x in range(1, 51): + print "BOXITEM%.2d EQU $%s" % (x, ("%.2x" % (0xd539+(x*2))).upper()) + print "BOXCOUNT%.2d EQU $%s" % (x, ("%.2x" % (0xd539+(x*2)+1)).upper()) + |
