Skip to content
Invaders game in 512 bytes (boot sector)
Branch: master
Clone or download
Latest commit a5f6cf2 Jul 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Spaceship moves with Ctrl+Alt. Shoots with Shift. Added defenses in t… Jun 30, 2019
Makefile Small changes to merge and comments Jun 6, 2019
README Adjusted comments. Jul 12, 2019
e.bat
invaders.asm Adjusted comments. Jul 12, 2019
invaders.com Spaceship moves with Ctrl+Alt. Shoots with Shift. Added defenses in t… Jun 30, 2019
invaders.img Spaceship moves with Ctrl+Alt. Shoots with Shift. Added defenses in t… Jun 30, 2019

README

 _ _  _ _  _  __  ___  ____ ___   ___
 | |\ | \  / /__\ |  \ |__  |__] [__
 | | \|  \/  |  | |__/ |___ |  \ ___]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Invaders game in 512 bytes (boot sector or COM file)
by Oscar Toledo G. Jun/04/2019

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

This a game recreating the Invaders game in 512 bytes, that can be
run as a COM file or put into a boot sector of a floppy disk to be
run.

Move with Ctrl key to left, Alt key to right, any Shift key to
shoot. (maybe you'll need to disable StickyKeys in Windows)

The previous commit worked with left arrow, right arrow and space
key, but you had to press the space key to stop the spaceship.
Also didn't have the barriers.

Now it's compatible with 8088 (the original IBM PC) but still it
has the option for 80286 code in the source code. So you now have
to look for a 8-bit compatible VGA card if you want to run it over
original hardware ;)

A small video of the game running over emulation:

  https://www.youtube.com/watch?v=pC976eejfms

If you want to assemble it, you must download the Netwide Assembler
(nasm) from www.nasm.us

Use this command line:

  nasm -f bin invaders.asm -Dcom_file=1 -o invaders.com
  nasm -f bin invaders.asm -Dcom_file=0 -o invaders.img

Tested with VirtualBox for Mac OS X running Windows XP running this
game, it also works with DosBox and probably with qemu:

  qemu-system-x86_64 -fda invaders.img

Enjoy it!
You can’t perform that action at this time.