mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-27 12:01:08 -05:00
make gbz80disasm understand bank:offset syntax
original-commit-id: d01369178b0ced3b299903b1cdf0084bdf067c43
This commit is contained in:
@@ -861,4 +861,10 @@ def all_outstanding_labels_are_reverse(byte_labels, offset):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print output_bank_opcodes(int(sys.argv[1], 16))[0]
|
||||
addr = sys.argv[1]
|
||||
if ":" in addr:
|
||||
addr = addr.split(":")
|
||||
addr = int(addr[0], 16)*0x4000+(int(addr[1], 16)%0x4000)
|
||||
else:
|
||||
addr = int(addr, 16)
|
||||
print output_bank_opcodes(addr)[0]
|
||||
|
||||
Reference in New Issue
Block a user