diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-18 19:24:28 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-18 19:24:28 -0600 |
commit | 609c7976400f7d1118ee1e42036eec709d62e615 (patch) | |
tree | 2a96550e11b790f825a013a2b105d4d4131a93c3 /extras/analyze_texts.py | |
parent | 3d74d5a2209f5ba9eb719880b9432222db8eb112 (diff) |
fill out some texts in bank $1d
hg-commit-id: 4f85e12d3d1f
Diffstat (limited to 'extras/analyze_texts.py')
-rw-r--r-- | extras/analyze_texts.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/extras/analyze_texts.py b/extras/analyze_texts.py index c008c870..fa21e3a5 100644 --- a/extras/analyze_texts.py +++ b/extras/analyze_texts.py @@ -432,7 +432,7 @@ def text_pretty_printer_at(start_address, label="SomeLabel"): first_line = False #p1 = command["pointer"][0] #p2 = command["pointer"][1] - output += "\n" + spacing + "TX_FAR _" + label + output += "\n" + spacing + "TX_FAR _" + label + " ; " + hex(command["pointer"]) byte_count += 4 #$17, bank, address word had_db_last = False elif command["type"] == 0x9: #TX_RAM_HEX2DEC @@ -468,6 +468,26 @@ def text_pretty_printer_at(start_address, label="SomeLabel"): pass #this is ok elif command["type"] == 0x50 and had_text_end_byte: pass #this is also ok + elif command["type"] == 0x0b: + if first_line: + output = "\n" + label + ": ; " + hex(start_address) + first_line = False + if had_db_last: + output += ", $0b" + else: + output += "\n" + spacing + "db $0B" + byte_count += 1 + had_db_last = True + elif command["type"] == 0x11: + if first_line: + output = "\n" + label + ": ; " + hex(start_address) + first_line = False + if had_db_last: + output += ", $11" + else: + output += "\n" + spacing + "db $11" + byte_count += 1 + had_db_last = True else: print "ERROR in command: " + hex(command["type"]) had_db_last = False |