Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 892 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 892 Bytes

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