• Stars
    star
    112
  • Rank 310,237 (Top 7 %)
  • Language
    Assembly
  • Created almost 9 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Toledo Atomchess is the world's smallest chess program in x86 assembly code
Toledo Atomchess
(c) Copyright 2015-2019 Oscar Toledo G.

http://www.nanochess.org/
https://github.com/nanochess

This 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.us

Use this command line:

  nasm -f bin toledo_atomchess.asm -o toledo_atomchess_disk.img
  nasm -f bin toledo_atomchess_reloaded.asm -o atomr.img

Or 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.img

Thanks 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.html

  Hard-cover
    http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/hardcover/product-24188530.html

  eBook
    https://nanochess.org/store.html

These 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.

More Repositories

1

bootOS

bootOS is a monolithic operating system in 512 bytes of x86 machine code.
Assembly
1,785
star
2

Invaders

Invaders game in 512 bytes (boot sector)
Assembly
514
star
3

bootBASIC

bootBASIC is a BASIC language in 512 bytes of x86 machine code.
Assembly
344
star
4

Pillman

Pillman boot sector game, a yellow thing eats pills and is chased by monsters.
Assembly
317
star
5

RayTracer

Ray Tracer in 483 bytes (x86 boot sector)
Assembly
236
star
6

tinyasm

Tiny assembler for 8086/8088, able to run over DOS for 8086/8088 machines.
Assembly
190
star
7

bootLogo

Logo language in 508 bytes (x86 boot sector)
Assembly
170
star
8

cubicDoom

A ray-casting game in 512 bytes of x86 machine code
Assembly
156
star
9

bootRogue

bootRogue, a roguelike game that fits in a boot sector (510 bytes)
Assembly
100
star
10

fbird

A boot sector game in text mode
Assembly
87
star
11

pi

Pi number calculator using 8088 assembly language
Assembly
62
star
12

bootle

Bootle (a Wordle clone in a x86 boot sector)
Assembly
55
star
13

book8088

Examples from my book Programming Boot Sector Games
Assembly
49
star
14

IntyBASIC

IntyBASIC compiler for Intellivision (CP1610 processor)
C++
35
star
15

pretty6502

A pretty printer for 6502, Z80, CP1610, TMS9900, and 8088 assembler code
C
34
star
16

CVBasic

BASIC language compiler for Colecovision, MSX, SG1000, Spectravideo SVI-318/328, Creativision, Sord M5, Memotech MTX, Tatung Einstein, Casio PV-2000, and Hanimex/Soundic Pencil II.
C
33
star
17

bricks

A game of bricks and paddle on one boot sector (510 bytes)
Assembly
27
star
18

book-Atari

Examples from my book Programming Games for Atari 2600
Assembly
26
star
19

Atomchess-6502

Toledo Atomchess for Atari VCS/2600
Assembly
25
star
20

z80rogue

A Roguelike game for MSX
Assembly
25
star
21

gasm80

Gasm80: Generic assembler for Z80/6502
C
20
star
22

Pletter

Pletter compressor, used in MSX/Colecovision games
C
19
star
23

240pTestSuite_colecovision

240p Test Suite for Colecovision/MSX/SG1000
Assembly
17
star
24

heart

x86 16-bit program drawing the heart curve equation
Assembly
15
star
25

Ttris

Ttris is a tetraminoes game for TRS-80 Model 1/3 computers.
Assembly
13
star
26

lights

Follow the Lights boot sector game in only 510 bytes of x86 machine code.
Assembly
11
star
27

Zombie-Near

Zombie Near for MSX, Colecovision, Memotech, Tatung Einstein and Spectravideo.
Assembly
10
star
28

Space-Raid

Space Raid game for Atari VCS/2600
Assembly
10
star
29

sphere

Draws a wireframe sphere in Javascript and exports it to GIF file
JavaScript
7
star
30

Space-Raid-Inty

Space Raid for Intellivision
Assembly
7
star
31

c6502

Atari VCS 6502 to IntyBASIC compiler
C
6
star
32

TMSColor

Converts a BMP image to TMS9928 bitmap/color format in assembler or CVBasic language.
C
5
star
33

IntyColor

Utility for conversion of BMP images to Intellivision screen format
C
5
star
34

ti994a

TI994A snippets (Astro Cube and Hello)
Assembly
4
star
35

psg2bas

Convert CoolCV PSG log files into IntyBASIC compilable program
C
1
star