MCPcopy Index your code
hub / github.com/InkboxSoftware/excelCPU / getLocationOfLabel

Function getLocationOfLabel

compileExcelASM16.py:76–86  ·  view source on GitHub ↗
(labelName)

Source from the content-addressed store, hash-verified

74 return address
75
76def getLocationOfLabel(labelName):
77 location = 0
78 for var in data:
79 if (labelName == var[0]):
80 varUseError(labelName)
81 location = location + 1
82 for operations in program:
83 if (labelName == operations[0]):
84 return location
85 location = location + len(operations[1])
86 return -1
87
88def getVarIndex(varName):
89 i = 0

Callers 1

parseNumberFunction · 0.85

Calls 1

varUseErrorFunction · 0.85

Tested by

no test coverage detected