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

original-commit-id: 2f21ff4ef5f4b26801463db720be32f55cfaf7d4
This commit is contained in:
yenatch
2013-06-14 02:19:35 -04:00
parent 9d4e21cabe
commit a8986d8c16

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