What is the proper way to write a BIOS Parameter Block? (Bootloader)
问题 After writing some basic code for a bootloader, I made an .img image to test it. On Bochs, it ran just as expected; however, when I wrote the image to a USB and tried to test it on a real device, I suddenly got a No bootable device found message. After a bit of web crawling on the internet, I found out that I may need a BIOS Parameter Block (BPB). I copied and pasted a BPB that I found, and suddenly everything worked. Here is the code, in case it is needed: bpbBytesPerSector: DW 512