This repository contains the source code of the book "Programming a toy computer from scratch", and of the associated website and emulator.
Use the online demo of the fully assembled and programmed toy computer to see what it can do. For instance, type snake to launch its snake game, or edit src/snake/snake.toy to view the source code of this program.
Type make in the book directory to build the book. This requires GNU Make, Python3, a complete LaTeX installation, and a complete Rust installation (including Cargo).
Type make in the main directory to build the book and the companion website as well.
The LaTeX source code of the book is licensed under the Creative Commons BY-NC-SA 4.0 License. The custom LaTeX source code preprocessor (used for literate programming), as well as the toy PC emulator (used to check the book content), both in Rust, are licensed under the GNU General Public License v3.