From a826951adbbe74f170219402791ceb4074c3c4de Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Wed, 23 Jan 2013 18:32:23 -0600 Subject: [PATCH] fix label generator Recently the bank lines were changed to use lowercase characters, breaking the generator for "labels.json". --- extras/crystal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/crystal.py b/extras/crystal.py index d1741f19c..98c02aefa 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -7762,9 +7762,9 @@ def scan_for_predefined_labels(debug=False): abbreviation_next = "1" # calculate the start/stop line numbers for this bank - start_line_id = index(asm, lambda line: "\"bank" + abbreviation + "\"" in line) + start_line_id = index(asm, lambda line: "\"bank" + abbreviation.lower() + "\"" in line.lower()) if bank_id != 0x7F: - end_line_id = index(asm, lambda line: "\"bank" + abbreviation_next + "\"" in line) + end_line_id = index(asm, lambda line: "\"bank" + abbreviation_next.lower() + "\"" in line.lower()) end_line_id += 1 else: end_line_id = len(asm) - 1