Show HN: Conway's Game of Life in boot sector

Hacker News Top News

Summary

A project called BootLife implements Conway's Game of Life in a 512-byte x86 boot sector, using VGA memory for the simulation grid.

Hello HN!<p>On these weekends, I was sitting and thinking about where our industry is going, and how fun it was earlier, when we wrote more code than chat messages. The thoughts quickly turned into a wish to build something like we did earlier. In my case, it ended up as something much &quot;earlier&quot; than I had in mind initially...<p>So, Conway&#x27;s Game of Life running from a 512-byte x86 boot sector. Maybe you will find it interesting. I tried to comment the code as much as possible, which might be especially useful if you are learning assembly.<p>Have fun!
Original Article
View Cached Full Text

Cached at: 09/23/26, 10:02 PM

0xAX/BootLife

Source: https://github.com/0xAX/BootLife

BootLife

Conway's Game of Life running directly from a 512-byte x86 boot sector, using VGA memory as the simulation grid.

Usage • Why • Contributing • Author

Size Platform Assembler License
Patreon Buy Me a Coffee

BootLife running in QEMU

Usage

To build and run bootlife you need:

Use the following commands to run it:

nasm -f bin -o life.img life.asm

qemu-system-i386 -drive file=life.img,format=raw,if=floppy

Or just:

make run

Why

Just for fun 💾

Contributing

Bug reports and pull requests are welcome - see CONTRIBUTING.md.

Author

0xAX

Similar Articles

Conway's Game of Life in real life

Hacker News Top

A blog post detailing the construction of a physical Conway's Game of Life implementation using a custom PCB, AVR microcontroller, and LED switches for interactive art.

Show HN: A language model that lives in a boot sector

Hacker News Top

bootgpt 是一个完全容纳在 510 字节 MBR 中的神经网络运行时,加载下一扇区的 11.5KB int8 量化字符级模型,在 386 的 16 位实模式下无操作系统运行,用于在开机时生成虚构的 Linux 启动日志。