mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
make gbz80disasm understand bank:offset syntax
This commit is contained in:
parent
acdb00c5dc
commit
d01369178b
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user