apply pokered changes from 'fix-analyze-incbins'

This helps to fix (pokered) gbz80disasm. These two disassemblers need to
be merged together as soon as possible.
This commit is contained in:
Bryan Bishop
2013-09-01 16:22:46 -05:00
parent 795cd58a70
commit 673555a75e

View File

@@ -314,6 +314,11 @@ def get_labels_between(start_line_id, end_line_id, bank_id):
if ": ; 0x" in line:
temp = line.split(": ; 0x")[1]
# just read until the comma appears
if "," in line:
temp = temp.split(",")[0]
if not " " in temp:
address = int("0x" + temp, 16)
else: