An open API service indexing awesome lists of open source software.

https://github.com/dexter-xd/snake-asm

Retro Snake game in pure x86 assembly.
https://github.com/dexter-xd/snake-asm

dosbox snake-game x86-assembly

Last synced: 9 months ago
JSON representation

Retro Snake game in pure x86 assembly.

Awesome Lists containing this project

README

          

# Snake

![snake.png](https://github.com/dexter-xD/snake-asm/blob/main/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](https://www.dosbox.com/), 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