MCPcopy Create free account
hub / github.com/InkboxSoftware/excelCPU / parseProgram

Function parseProgram

compileExcelASM16.py:358–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356 return [operand0, operand1]
357
358def parseProgram():
359 global output
360 global compiled
361 global data
362 for value in data:
363 if (len(value[0]) > 0):
364 value[1] = parseNumber(value[1], 0)
365 output.append(value[1])
366 for operations in program:
367 for value in operations[1]:
368 output.append(value)
369 if (len(output) > 65536):
370 lengthError(len(output) - 65536)
371 compiled = True
372 return
373
374def parseUnmarkedLabels():
375 pLine = 0

Callers 1

compileASMFunction · 0.85

Calls 2

parseNumberFunction · 0.85
lengthErrorFunction · 0.85

Tested by

no test coverage detected