That's cool. How can I learn how to do this? What's the background material?
That minesweeper game seems to only use the vga buffer and that blog series explains that tech very well.
That blog post explains the vga buffer quite nicely so you should also be able to use the same information when writing assembler.
(I saw a wasm one get a bit lower but that isn't really apples to apples)
https://wiki.osdev.org/Expanded_Main_Page
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.