mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-10 11:15:12 -05:00
gbz80disasm: fix labels outside of banks 0 and 1
original-commit-id: dfb241619203a2b1b9eb389055cbe0ff31baa7a0
This commit is contained in:
@@ -577,7 +577,7 @@ def find_label(local_address, bank_id=0):
|
||||
|
||||
if local_address < 0x8000:
|
||||
for label_entry in all_labels:
|
||||
if label_entry["address"] == local_address:
|
||||
if label_entry["address"] & 0x7fff == local_address:
|
||||
if label_entry["bank"] == bank_id or label_entry["bank"] == 0:
|
||||
return label_entry["label"]
|
||||
if local_address in wram_labels.keys():
|
||||
|
||||
Reference in New Issue
Block a user