Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareCogwork
Cogwork is a visual virtual machine that lets you watch a program execute one instruction at a time. A two-pass assembler resolves labels to indices, and a roughly 20-opcode stack machine runs the result, with execution modelled as a pure step(program, state) function so the debugger simply renders the resulting state. It is a from-scratch, dependency-light build - 8 tests run real programs like a factorial loop and a max-via-jumps routine - that you can download and run locally.
01About the app
Virtual machines
What to take away
- Two-pass assembler (labels → indices) + a ~20-opcode stack machine where execution is a pure step(program, state) - so the debugger just renders state. 8 tests run real programs (factorial loop, max via jumps).
- Download: Cogwork (ZIP)
More from the lab
Browse all entries- Sylex: Make sense of the slashes
- Kindra: Miss a beat, not the rhythm
- Voxara: Argue better. Lose gracefully
- Wraithward: Spot the bait before you bite
Want this looked at on your own system?Start a conversation
