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

Function sendToSpreadsheet

compileExcelASM16.py:431–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

429 return
430
431def sendToSpreadsheet():
432 #load excel file
433 workbook = load_workbook(filename = spreadsheet)
434 #open workbook
435 sheet = workbook.active
436 try:
437 i = 0
438 while (i < pow(2, 16)):
439 if (i < len(output)):
440 sheet.cell(row = math.floor(i / 256) + 1, column = (i % 256) + 1, value = output[i])
441 else:
442 sheet.cell(row = math.floor(i / 256) + 1, column = (i % 256) + 1, value = 0)
443 i = i + 1
444 #save the file
445 workbook.save(filename = spreadsheet)
446 except:
447 ROMbookError()
448 return
449
450def compileResults():
451 if (not(compiled)):

Callers 1

compileResultsFunction · 0.85

Calls 1

ROMbookErrorFunction · 0.85

Tested by

no test coverage detected