"0x2098" "lgdt"
Please chime in with other links to great bootloader tutorials!That documentation is usually.... lacking
> You can't fit a filesystem parser into 1 sector and have anything other sensible in there
You don't use a single sector. You use a 2 stage bootloader that uses a reserved FAT sector. In FAT12 (at least) you can specifiy how many reserved secotrs on formatting. A reserved sector comes directly after the first sector. You can do a full FAT12 implementation in assembly in two sectors.
> using bios generally (on x86 atleast). and you can understand how to do it from this tutorial.
You're going to need to do a lot more reading. Even just looking up the interrupts you need is a task. I've found nothign that does a good job explaining the 1, 2, and 3s of how to get all the way to booting from a formated disk.
There is unlikely to be a single thorough body of documentation on this sort of thing. IMHO, the best resource would be the numerous open source bootloaders that are available.
* https://en.wikipedia.org/wiki/Master_boot_record
* https://en.wikipedia.org/wiki/BIOS_interrupt_call
There isn't much call for FAT12 these days...