Codex on the Roc machine
Each program below is a Codex test from Cobblestone, turned into Roc by rocemit and built for WebAssembly. It runs from start to finish on a Roc model of the machine those tests run on: the disk drives, the NE2000 network card and the small network behind it. Pick one and press Run. How the machine works, and where each program's files come from.
Screen
What a program leaves on the screen appears here.
Console
Nothing has run yet.
The test expects
Disk
The sectors a run writes appear here.
Network
The frames a run sends, and the network's answers, appear here.
Roc
What rocemit wrote for this program: the test's own module first, then a module for each Codex chapter it cites. The machine it runs on is hand-written Roc, the same for every program: machine/roc.