How inkboxsoftware/excelcpu works
This repository provides an Excel-based 16-bit computer and a Python assembler that compiles Excel-ASM16 programs into its ROM workbook. The main workflow is to compile a program, load ROM contents into CPU RAM, and run the CPU by recalculating Excel; users can also operate it manually. The README documents CPU, memory, display, and ISA capabilities, but the spreadsheet internals are not sampled, so those components are represented at the documented level.
Main entry points: CPU.xlsx 16-bit CPU · compileExcelASM16.py ASM16 compiler · sample programs Assembly source · ROM.xlsx Program ROM
Components 13
Program authoring
- Assembly source
sample programs - Binary include
sample programs - Language reference
Excel-ASM16.xml
Assembly and ROM
- ASM16 compiler
compileExcelASM16.py - Program ROM
ROM.xlsx
Excel computer
- Instruction set
instructionSet.xlsx - 16-bit CPU
CPU.xlsx - Fetch and control
CPU.xlsx - Registers and ALU
CPU.xlsx - 128KB RAM
CPU.xlsx - 128×128 display
CPU.xlsx
Other components
- Program author
- Excel runtime
Connections 16
- Program author → Assembly source: writes program
README.md - Program author → Binary include: includes binary
README.md - Assembly source → ASM16 compiler: compiles source
README.md - Binary include → ASM16 compiler: includes bytes
compileExcelASM16.py - Language reference → ASM16 compiler: defines syntax
README.md - ASM16 compiler → Program ROM: writes program
README.md - Program author → Excel runtime: recalculates workbook
README.md - Excel runtime → 16-bit CPU: runs workbook
README.md - Program author → 16-bit CPU: sets controls
README.md - Program ROM → 128KB RAM: loads into
README.md - 16-bit CPU → Instruction set: follows ISA
README.md - 16-bit CPU → Fetch and control: contains fetch unit
README.md - Fetch and control → 128KB RAM: fetches instructions
README.md - Fetch and control → Registers and ALU: dispatches operations
README.md - Registers and ALU → 128KB RAM: reads and writes
README.md - 16-bit CPU → 128×128 display: drives display
README.md