ref: 4e4d61307434b96ee171e46ca07bcf3ca0f09ec2
parent: 7d458509d3571de65472dedf4fc308bd2e387dc0
author: Bryan Bishop <kanzure@gmail.com>
date: Mon Jun 10 09:08:49 EDT 2013
allow commas in comments Eventually gbz80disasm should be split into a separate project, there's no point in maintaining two versions of gbz80disasm.
--- a/extras/analyze_incbins.py
+++ b/extras/analyze_incbins.py
@@ -314,6 +314,11 @@
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: