I wrote a Pong game in a 512-byte boot sector
8 days ago
- #boot-sector
- #pong-game
- #assembly
- Akshat Joshi created a Pong game that fits into a single floppy disk sector (512 bytes) as a personal challenge.
- The game runs without an operating system, drivers, or libraries, using raw x86 assembly and BIOS interrupts.
- Features include player paddle control, CPU opponent, ball with velocity, scoring, color toggle, and full reset.
- The game operates in 80x25 text mode (VGA mode 03h) and draws directly into video memory (0xB800).
- Controls: W/S for paddle movement, C for color cycling, R for game reset.
- Key technical highlights include direct video memory access, efficient positioning, real-time input, physics, and collision handling.
- The entire game is written in assembly and is publicly available on GitHub.
- Instructions for running the game include cloning the repo, assembling with NASM, and running in QEMU or on old hardware.