8000 GitHub - RSKELT0N/SnakeInMyBoot: A simple snake game written within the first sector (512 bytes) of a hard drive; the boot sector located by the BIOS in 16-bit mode.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple snake game written within the first sector (512 bytes) of a hard drive; the boot sector located by the BIOS in 16-bit mode.

License

Notifications You must be signed in to change notification settings

RSKELT0N/SnakeInMyBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeInMyBoot

A simple snake game written within the first sector (512 bytes) of a hard drive; the boot sector located by the BIOS in 16-bit mode.

Project Information

  • Snake game is bounded by 512 bytes (first sector of the hard drive), this is due to the BIOS loading this sector into memory for us. Utilising more disk space, requires loading additional sectors from the hard drive through the hard drive interrupt within the BIOS. As it is possible, the challenge of this project is to only use the default allocated space.
  • CPU is still within real mode (16-bit).
  • As the boot sector is located within the first sector of the hard drive, the BIOS will typically load the sector into address 0x7c00 of the main memory.

Requirements

  • nasm
  • qemu-system-x86_64

Project usage

Usage Shell Command
compile make
clean make clean
rebuild make rb
execute make run

Usage

  • The program is controlled through W, A, S, and D keys for Up, Left Right and Down movements, respectively.
  • Upon startup, the game is in an idle state, waiting for one of the valid key presses.

Binary generated

Snake

Example

snake

About

A simple snake game written within the first sector (512 bytes) of a hard drive; the boot sector located by the BIOS in 16-bit mode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0