Idea · Oct 3, 2026
Build Your Own Fantasy Console
Student teams design and implement a tiny PICO-8-style fantasy console: an instruction set, a VM with memory-mapped graphics and sound, an assembler, a sprite editor, and a cartridge format, then ship a playable game on it.
What it would do
Inspired by Pyxel (a retro Python game engine with built-in art and sound editors) and a Show HN space game with an embedded RISC-V emulator, this assignment has students build the whole stack of a retro machine. Weeks 1-2: design a small 16-bit ISA from a provided spec skeleton and implement the fetch-decode-execute VM with a test suite of instruction-level traces. Weeks 3-4: add memory-mapped I/O for a 128x128 16-color framebuffer, a sprite sheet region, a gamepad register, and a square-wave sound channel, and write a two-pass assembler with labels and macros. Weeks 5-6: build a browser sprite and tile editor that saves into the cartridge's memory regions, define a .cart file format (code, sprites, map, sfx), and write a game in their own assembly. Final week: cartridges are swapped between teams, which tests whether each team's spec was precise enough for another team's VM to run it.
Key features
- Starter ISA spec template, trace-based autograder for instruction semantics
- Memory-mapped framebuffer, sprites, input, and a simple sound channel
- Two-pass assembler with labels, macros, and helpful error messages
- In-browser sprite and tile editor writing directly into cartridge memory
- Cartridge file format and a cross-team cartridge swap as the final compatibility test
- Optional extension: a tiny high-level language compiled to the team's ISA