From 673555a75efc10d1150d334a316718b4e267ec68 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Sep 2013 16:22:46 -0500 Subject: 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. --- redtools/analyze_incbins.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'redtools/analyze_incbins.py') diff --git a/redtools/analyze_incbins.py b/redtools/analyze_incbins.py index be3c1c6..db503ff 100644 --- a/redtools/analyze_incbins.py +++ b/redtools/analyze_incbins.py @@ -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: -- cgit v1.2.3