4 ms·
This is a very good series if you want to build it in rust. https://os.phil-opp.com/ https://os.phil-opp.com/ That minesweeper game seems to only use the vga b
by davidhyde 6y ago
This is a very good series if you want to build it in rust. https://os.phil-opp.com/ https://os.phil-opp.com/
That minesweeper game seems to only use the vga buffer and that blog series explains that tech very well.
- NieDzejkob 6y agoI doubt you'd be able to fit compiled Rust into 512 bytes, though.
- davidhyde 6y agoTrue, fitting a game and a boot loader into 512 bytes is very impressive. You can build pretty tiny rust binaries if you don’t link the std library though. Check this out for some tricks: https://github.com/johnthagen/min-sized-rust https://github.com/johnthagen/min-sized-rust That blog post explains the vga buffer quite nicely so you should also be able to use the same information when writing assembler.
- steveklabnik 6y agoThe smallest Rust binary that does something that I've ever seen is 145 bytes https://github.com/tormol/tiny-rust-executable https://github.com/tormol/tiny-rust-executable (I saw a wasm one get a bit lower but that isn't really apples to apples)