match: func_800B92F4 / func_800B97A8 (#501)

* match: func_800B92F4

* fix: score.py script crashing on invalid / empty address

* match: func_800B97A8
This commit is contained in:
Dominik Peters
2025-04-05 21:06:23 -04:00
committed by GitHub
parent 34508976cd
commit fa806d366f
5 changed files with 220 additions and 27 deletions
+7 -2
View File
@@ -83,8 +83,13 @@ class DkrMapFile:
lineSet = 18
if (lineSet != 0):
if '=' in line:
line = line[0:line.find('=')-1]
address = int(line[lineSet:lineSet+8], 16)
line = line[0:line.find('=') - 1]
try:
address = int(line[lineSet:lineSet+8], 16)
except ValueError:
# no or incorrect address, skip
continue
if address >= CODE_START and address < CODE_END:
symbol = line[line.rfind(' ')+1:]
if (not symbol.startswith(".L") and not symbol.startswith("L800")