diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 16:30:16 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 16:30:16 -0500 |
commit | 5385ccd6d7fbc47f82df6d5ff4045f297ac71ac0 (patch) | |
tree | 4ac533c076059d9472476987ffde8f133c1f389c | |
parent | 018f7cb5402a61c00940877c3f3a4c15f36485cd (diff) | |
parent | 7aa016fb528bcc8dcb30c6a887957851623eccc0 (diff) |
Merge branch 'master' into september-cleanup
-rw-r--r-- | redtools/analyze_incbins.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |