If you wish to make an apple pie from scratch, you must first invent the universe.
—
Carl Sagan
KAP-16 — short for Kinda Adequate Processor, 16-bit — is a toy microprocessor architecture. It runs its own instruction set architecture (ISA) called LANv1: Lite Assembly Notation, version 1.
KAP-16's specifications are outlined in spec/
.
Read the README.md
for information on the architecture.
The assembler is responsible for converting programs written in LANv1 assembly language into bit patterns that can be interpreted by KAP-16. It is also capable of linking multiple object files into an executable, which can be run directly on the processor. Since KAP-16 does not have an operating system, the executables it runs are actually a memory image.
Source code for the assembler can be found in the asm/
directory.
Read the README.md
for information on building and running the assembler.
A fully functional emulator for the KAP-16 can be found inside the emu/
directory.
Read the README.md
for information on building and running the emulator.