shithub: pokecrystal

Download patch

ref: b38e2874095266d45df984be778d9fe68832aaac
parent: ffd562351b8d55cb8ff6c613d6ac601cead4341c
author: yenatch <[email protected]>
date: Wed May 15 10:40:20 EDT 2013

gbz80disasm: don't look for outstanding labels that are behind the origin

--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -799,7 +799,7 @@
 
             #stop reading at a jump, relative jump or return
             if current_byte in end_08_scripts_with:
-                if not has_outstanding_labels(byte_labels) and all_outstanding_labels_are_reverse(byte_labels, offset):
+                if not has_outstanding_labels(byte_labels) or all_outstanding_labels_are_reverse(byte_labels, offset):
                     keep_reading = False
                     is_data = False #cleanup
                     break