diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-06-10 13:08:49 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-06-10 13:08:49 -0500 |
commit | 4e4d61307434b96ee171e46ca07bcf3ca0f09ec2 (patch) | |
tree | 14f55617f03ae244328d3e01f095a111e9737cff | |
parent | 7d458509d3571de65472dedf4fc308bd2e387dc0 (diff) |
allow commas in comments
Eventually gbz80disasm should be split into a separate project, there's
no point in maintaining two versions of gbz80disasm.
-rw-r--r-- | extras/analyze_incbins.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |