ref: a826951adbbe74f170219402791ceb4074c3c4de
parent: d510b00a8f1b5b6fb46235401995a18f115a1277
author: Bryan Bishop <[email protected]>
date: Wed Jan 23 13:32:23 EST 2013
fix label generator Recently the bank lines were changed to use lowercase characters, breaking the generator for "labels.json".
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -7762,9 +7762,9 @@
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