Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nanochess/toledo-atomchess
Toledo Atomchess is the world's smallest chess program in x86 assembly code
https://github.com/nanochess/toledo-atomchess
asm bootloader game x86
Last synced: 2 days ago
JSON representation
Toledo Atomchess is the world's smallest chess program in x86 assembly code
- Host: GitHub
- URL: https://github.com/nanochess/toledo-atomchess
- Owner: nanochess
- Created: 2015-10-23T02:09:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-16T02:45:17.000Z (almost 5 years ago)
- Last Synced: 2023-10-20T21:58:51.527Z (about 1 year ago)
- Topics: asm, bootloader, game, x86
- Language: Assembly
- Size: 62.5 KB
- Stars: 110
- Watchers: 9
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
Toledo Atomchess
(c) Copyright 2015-2019 Oscar Toledo G.http://www.nanochess.org/
https://github.com/nanochessThis Github repository contains the x86 assembler source code
for Toledo Atomchess and Toledo Atomchess Reloaded.Toledo Atomchess allows the player to play against the computer,
the computer only plays basic legal chess movements, no promotion,
no castling and no enpassant. All this in 356 bytes bootable from
a floppy disk or 352 bytes if using the COM file. Also there is
a HACK mode version reaching 326 bytes with COM file, or 330 bytes
bootable.Toledo Atomchess Reloaded plays full chess movements and
currently sizes up to 779 bytes. It hasn't been optimized further
because of lack of time.Check the source code for further details.
In order to assemble it, you must download the Netwide Assembler
(nasm) from www.nasm.usUse this command line:
nasm -f bin toledo_atomchess.asm -o toledo_atomchess_disk.img
nasm -f bin toledo_atomchess_reloaded.asm -o atomr.imgOr this command line for compatibility with bootOS (see my repositories):
nasm -f bin toledo_atomchess.asm -Dbootos -o toledo_atomchess_bootos.img
It can be run with DosBox or qemu:
qemu-system-x86_64 -fda toledo_atomchess_disk.img
qemu-system-x86_64 -fda atomr.imgThanks to following people:
* HellMood for suggesting the translation of Toledo Atomchess
to nasm syntax and some optimization suggestions.
* Peter Ferrie (qkumba) for suggestions.
* qu1j0t3 for providing a makefile.
* theshich for optimization suggestions.Enjoy it!
Useful links:
Original homepage of Toledo Atomchess
http://nanochess.org/chess6.html>> THE BOOK <<
Do you would like more details on the inner workings? This program
is fully commented in my new book Programming Boot Sector Games
and you'll also find a 8086/8088 crash course!Now available from Lulu:
Soft-cover
http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/paperback/product-24188564.htmlHard-cover
http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/hardcover/product-24188530.htmleBook
https://nanochess.org/store.htmlThese are some of the example programs documented profusely
in the book:* Guess the number.
* Tic-Tac-Toe game.
* Text graphics.
* Mandelbrot set.
* F-Bird game.
* Invaders game.
* Pillman game.
* Toledo Atomchess.
* bootBASIC language.