shithub: pokecrystal

Download patch

ref: 91f7c123f4a54beddf8c9de0f8a10195ad3d7667
parent: 6630406043cda9e4ab36f8477c62025249b647d6
author: yenatch <[email protected]>
date: Mon Jun 24 23:57:49 EDT 2013

gbz80disasm: fix data handling

get the scalpel out of there

--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -848,7 +848,6 @@
                 keep_reading = True
             output += "\n"
         elif is_data and offset not in byte_labels.keys():
-            print hex(offset), output.split('\n')[-2]
             is_data = True
             keep_reading = True
         else:
@@ -858,6 +857,8 @@
         if offset in data_tables.keys():
             output = output.replace('$%x' % (get_local_address(offset)), data_label(offset).lower())
             output += data_label(offset).lower() + '\n'
+            is_data = True
+            keep_reading = True
 
         first_loop = False