Skip to content

dexter-xD/snake-asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake

snake.png

Written in pure x86 assembly language for DOS operating system and can be run in DosBox. It is a 16bit retro game and should run on anything newer than ancient Intel 80186 processor.

How to compile it?

The compiled version snake.com is in the repo so you can skip this point and simply run it in DosBox, however if you want to try building it yourself do this:

  • Install NASM compiler, on Ubuntu you can simply run:
apt-get install nasm
  • Compile snake.asm to snake.com:
nasm -o snake.com -fbin snake.asm

How to run it?

  • First you need to clone this repo or download snake.com to a folder.
  • Next you need to install DosBox, on Ubuntu just run:
apt-get install dosbox
  • Next run DosBox and mount directory where snake.com is located
  • For exemple: /home/dektop/snake/
mount c path/to/snake/
  • Now you can start snake.com
snake.com
  • Use keyboard arrows (Up, Down, Left, Right) to drive the snake
  • ESC quits the game
  • A print about
  • P pause the game

About

Retro Snake game in pure x86 assembly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published