lcf.py: fix wrong variable being checked for "@"

This commit is contained in:
Jcw87 2023-01-28 20:53:37 -08:00
parent 5d3a72994d
commit 3d8bfabe5a
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def lcf_generate(output_path,shiftable,map_file):
if shiftable==True:
for line in map_file:
literals_found = []
if type(symbol['name'])==str and line.find(' '+symbol['name']+' ')!=-1 and name[0] != "@" or type(symbol['label']) == str and line.find(' '+symbol['label']+' ')!=-1:
if type(symbol['name'])==str and line.find(' '+symbol['name']+' ')!=-1 and symbol['name'][0] != "@" or type(symbol['label']) == str and line.find(' '+symbol['label']+' ')!=-1:
linesplit = line.split()
if len(linesplit) > 3 and linesplit[2]!="NOT":
if line.find("lit_")!=-1: