From 4e4d61307434b96ee171e46ca07bcf3ca0f09ec2 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 10 Jun 2013 13:08:49 -0500 Subject: allow commas in comments Eventually gbz80disasm should be split into a separate project, there's no point in maintaining two versions of gbz80disasm. --- extras/analyze_incbins.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extras/analyze_incbins.py') diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index be3c1c6a..db503ff1 100644 --- a/extras/analyze_incbins.py +++ b/extras/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