gbz80disasm: only use gbhw/hram constants >= 0xff00

This commit is contained in:
yenatch 2013-06-14 02:19:35 -04:00
parent 7213916ccc
commit 2f21ff4ef5

View File

@ -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