fix bank-checking for labels in gbz80disasm

bank 1 is not fixed like bank 0
This commit is contained in:
yenatch 2013-05-14 13:38:26 -04:00
parent 7232eb5d64
commit b9bd11e34d

View File

@ -584,7 +584,7 @@ def find_label(local_address, bank_id=0):
for label_entry in all_labels:
if label_entry["address"] == local_address:
if label_entry["bank"] == bank_id or (local_address1 < 0x8000 and (label_entry["bank"] == 0 or label_entry["bank"] == 1)):
if label_entry["bank"] == bank_id or label_entry["bank"] == 0:
return label_entry["label"]
return None