mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-14 09:06:41 +13:00
gbz80disasm - only use labels when the bank matches
hg-commit-id: caf3eb99db86
This commit is contained in:
parent
881911549e
commit
f5c63418f3
|
|
@ -578,7 +578,8 @@ def find_label(local_address, bank_id=0):
|
|||
|
||||
for label_entry in all_labels:
|
||||
if label_entry["local_pointer"].upper() == local_address:
|
||||
return label_entry["label"]
|
||||
if label_entry["bank_id"] == bank_id:
|
||||
return label_entry["label"]
|
||||
return None
|
||||
|
||||
def random_asm_label():
|
||||
|
|
|
|||
Loading…
Reference in a new issue