shithub: pokered

Download patch

ref: f5c63418f323020cbcb19b9b07b6d5c2e329cae4
parent: 881911549e08d708b5b264c12ca199af2ec01272
author: Bryan Bishop <kanzure@gmail.com>
date: Mon Jan 23 13:57:06 EST 2012

gbz80disasm - only use labels when the bank matches

hg-commit-id: caf3eb99db86


--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -578,7 +578,8 @@
 
     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():