Skip to content

MashiroIsAsleep/floppy-boot-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Floppy disk boot sector snake game based on x86 NASM assembly.

I should have commented as I wrote these jibberish code.

Installation

Make sure you installed NASM and qemu via

pip install NASM
pip install qemu

Compile the .asm code into a .bin file.

nasm boot_game.asm -f bin -o boot_game.bin

Make a disk image of the corresponding size

dd if=/dev/zero of=boot_game.img bs=512 count=1
dd if=boot_game.bin of=boot_game.img conv=notrunc

Compile and run the code via qemu

qemu-system-x86_64 -drive file=boot_game.img,format=raw,if=floppy

If you wanna do it with simulators like dosbox, pretty much what you have to do is either compile the .asm file or pad the disk image into a 1.44mb image with zeroes. Attach the folder to dosbox as a floppy disk, and it should run.

About

Simple x86 NASM assembly based boot sector snake game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published