Anos – a hand-written ~100KiB microkernel for x86-64 and RISC-V
Dual-architecture microkernel that boots on real hardware with zero AI in the kernel.
RISC-V emulator that runs DOOM
Running DOOM on a homegrown RISC-V core is a rite of passage executed well.
Systems programmers, emulator hobbyists, retro computing enthusiasts
rv8 · Spike · QEMU
I built a RISC-V emulator that implements the RV32IM instruction set and a minimal syscall interface to run DOOM. A few weeks ago, I got my first output with a simple hello world assembly program.
Since then I have been working tirelessly to get DOOM to run.
I needed to figure out how to run C programs first, and came across newlib, which allows the underlying environment to implement the syscall stubs one by one until the programs run.
I have also added ELF loading, but currently only a single `PT_LOAD` segment is supported.
To port DOOM, I used doomgeneric, which was quite convenient to get working once the required stubs were in place.
DOOM renders to a fixed area in memory (0x705FDD = VRAM_START):
0x7FFFFF +-------------------------------------+ | | | QUEUE_SIZE (32 bytes) | | | 0x7FFFDF +-------------------------------------+ <-- QUEUE_START 0x7FFFDE | QUEUE_READ_IDX | 0x7FFFDD | QUEUE_WRITE_IDX | +-------------------------------------+ | | | | | VRAM (1,024,000 bytes) | | | | | 0x705FDD +-------------------------------------+ <-- STACK_START | Stack | | | | | v | | | | ^ | | | | | Program data + Heap | | | 0x000000 +-------------------------------------+
I made a small linker script so that the entry point of a C program is at _start and virtual address is always 0. That kept the ELF loader code simple.Inputs are written to the queue by rvcore which are then intercepted by DOOM running inside it.
Demo link: https://www.youtube.com/watch?v=f5uygzEmdLw
Dual-architecture microkernel that boots on real hardware with zero AI in the kernel.
24-trit balanced ternary RISC processor on FPGA is hardware wizardry.
Zero-cycle matrix multiplication in combinatorial logic on Lattice ECP5 is genuinely wild.
Raycasting DOOM clone built to stress-test a custom language's C-interop.
Real Linux VM in your phone browser—runs Codex, SSH, Kubernetes, offline compute.
Vibe-coded SGI Indy emulator in Rust that actually boots IRIX 6.5 with X11.