Skip to content

My attempt at making a simple snake game at the kernel level

License

Notifications You must be signed in to change notification settings

PonasKovas/spaghetti-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spaghetti os

My attempt at making a simple snake game at the kernel level

This has to be the worst code I have ever written, everything is unsafe and unreadable, but it works :)

Compiling

  1. Make sure you have the nightly toolchain installed
rustup toolchain install nightly
  1. Make sure you have xbuild
cargo install cargo-xbuild
  1. Make sure you have rust-src
rustup component add rust-src
  1. Make sure you have bootimage
cargo install bootimage
  1. Compile it
cargo bootimage --release

Running

You can easily run it in the QEMU virtual machine with the command below or you can burn the resulting .bin in target/x86_64-unknown-none/release/.

qemu-system-x86_64 -drive format=raw,file=target/x86_64-unknown-none/release/bootimage-spaghetti-os.bin

About

My attempt at making a simple snake game at the kernel level

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages