A 113KB pure-assembly OS boots bare-metal and runs a 2.5B LLM that writes Flappy Bird live

Kyrannio · x · 2026-12-01

@superalesha deleted Linux and every app on her machine and wrote a pure x86-64 assembly OS: a 115,160-byte, 19,138-line handwritten NASM kernel that boots straight into 64-bit Long Mode.

The demo: it wakes every CPU core over APIC, maps a 2.50 GiB Q80 MiniCPM5-2B model directly over NVDIMM, and runs the 2.5B LLM on bare-metal CPU. A built-in Ring-0 micro-assembler means when you prompt "flappy bird", the model writes x86-64 assembly at runtime, assembles it, and launches it live in a hardware-isolated Ring-3 W^X sandbox. No Linux, no Windows, no C, no Rust, no gcc, no preinstalled apps.

Related event: Dev Runs 2.5B LLM on Bare Metal with 113KB Handwritten Assembly OS(2 posts)→

Original post →

More from Fun

Fun channel →