gbz80disasm - only use labels when the bank matches

hg-commit-id: caf3eb99db86
This commit is contained in:
Bryan Bishop 2012-01-23 18:57:06 -06:00
parent 881911549e
commit f5c63418f3

View file

@ -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():