6 ms·
That's cool. How can I learn how to do this? What's the background material?
by brainlessdev 6y ago
That's cool. How can I learn how to do this? What's the background material?
- alecco 6y agonanochess guy has some ebooks: https://nanochess.org/store.html https://nanochess.org/store.html
- davidhyde 6y agoThis 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)
- msla 6y agoThe OSDev Wiki has a lot of information: https://wiki.osdev.org/Expanded_Main_Page https://wiki.osdev.org/Expanded_Main_Page https://wiki.osdev.org/Introduction https://wiki.osdev.org/Introduction It's about Operating System development, but these bootable games are really simple, limited OSes: They don't have much functionality, but they do have to access hardware in all the same ways, so a lot of the same rules apply.