Skip to content

kuuhaku1314/snakeos-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeOS

This is the game snake, bootable on a x86_64 CPU, written completely in rust. Its foundation is following the very interesting Writing an OS in Rust blog which I would recommend everybody who is interested in this kind of stuff.

Modified the environment to run on Windows

screenshot

Features

  • Play snake or 2048 on any x86_64 CPU
    • Let's have fun!
  • Dynamic memory management
    • The snake can grow!
  • Interrupt handling
    • We can read the keyboard!
  • Async/Await support
    • We can update the world and read user input at the same time!
  • Only 226kB kernel size
    • You can even put this on a 8-inch floppy disk!
  • All the infrastructure you need to implement and play a game
    • You can implement your own game!

Screenshots

welcome

2048

How to run it

You need wsl and qemu

rustup override set nightly
rustup toolchain install nightly
rustup target add x86_64-unknown-none
rustup component add llvm-tools-preview
cargo run --release

About

rust编写操作系统的样例

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages