From 2f21ff4ef5f4b26801463db720be32f55cfaf7d4 Mon Sep 17 00:00:00 2001 From: yenatch Date: Fri, 14 Jun 2013 02:19:35 -0400 Subject: [PATCH] gbz80disasm: only use gbhw/hram constants >= 0xff00 --- extras/gbz80disasm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index c1d129c82..4975108a9 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -583,7 +583,7 @@ def find_label(local_address, bank_id=0): if local_address in wram_labels.keys(): return wram_labels[local_address][-1] for constants in [gbhw_constants, hram_constants]: - if local_address in constants.keys(): + if local_address in constants.keys() and local_address >= 0xff00: return constants[local_address] return None