summaryrefslogtreecommitdiff
path: root/gbz80disasm.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-06-06 21:00:30 -0500
committerBryan Bishop <kanzure@gmail.com>2012-06-06 21:00:30 -0500
commitaced3df081d75769bd93cf49e5b42e571955ef81 (patch)
tree7586b9c1abfdd6a599be214db5fcc477ffd8473a /gbz80disasm.py
parent095ecb39ef3a6db799d61e673578303decf57436 (diff)
remove more code cruft
original-commit-id: c79db81d43ad6ba993cac3c6e6f0e3e6b6ef86b5
Diffstat (limited to 'gbz80disasm.py')
-rw-r--r--gbz80disasm.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/gbz80disasm.py b/gbz80disasm.py
index 6ab870a..b87a372 100644
--- a/gbz80disasm.py
+++ b/gbz80disasm.py
@@ -534,14 +534,6 @@ temp_opt_table = [
[ "E", 0x100, -1 ],
]
-#find conflicts
-conflict_table = {}
-for line in temp_opt_table:
- if line[1] in conflict_table.keys():
- print "CONFLICT: " + line[0] + " ($" + hex(line[1])[2:] + ") .... " + conflict_table[line[1]]
- else:
- conflict_table[line[1]] = line[0]
-
#construct real opt_table
opt_table = {}
for line in temp_opt_table:
@@ -832,19 +824,6 @@ def all_outstanding_labels_are_reverse(byte_labels, offset):
if not label_id < offset: return False
return True
-def text_asm_pretty_printer(label, address_of_08, include_08=True):
- """returns (output, end_address)"""
- output = label + ": ; " + hex(address_of_08) + "\n"
- if include_08:
- output += spacing + "db $08 ; asm\n"
- results = output_bank_opcodes(address_of_08 + 1)
- else:
- results = output_bank_opcodes(address_of_08)
- output += results[0]
- end_address = results[1]
-
- return (output, end_address)
-
if __name__ == "__main__":
load_rom()
print output_bank_opcodes(int(sys.argv[1], 16))[0]