shithub: pokecrystal

Download patch

ref: 2f21ff4ef5f4b26801463db720be32f55cfaf7d4
parent: 7213916cccb5b62c71fee301531e49160defb2df
author: yenatch <[email protected]>
date: Thu Jun 13 22:19:35 EDT 2013

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

--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -583,7 +583,7 @@
     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