AttoChess, a complete, playable chess program for 16-bit x86 DOS in 278 bytes
A developer has created a fully functional chess program for 16-bit x86 DOS that fits within 278 bytes of code. The article details the technical optimizations used to strip away unnecessary buffers and leverage DOS-specific console output.
Why it matters
It demonstrates extreme code optimization techniques and the historical capabilities of legacy computing environments.
The original renders the position into a separate buffer: it walks the board, transforms each square into a printable character, stores it, appends a $ terminator, and prints the whole string with DOS function 09h ( int 21h ). That path costs a buffer pointer setup, the copy loop's store, the terminator write, and, because the buffer lives after the board, a reserved board array in the image.
The content is purely technical and descriptive, focusing on software engineering methodology.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in