Legacy BIOS bootloader to bootstrap real-mode code in second stage
问题 I am working on writing my own operating system. So far, my code exceeds 512 bytes, which is too large to fit in a simple boot sector. I understand that I now have to write a bootloader that reads arbitrary code that may or may not be greater than a single 512-byte sector. The bootloader would need to: Function as a boot record with disk signature 0xaa55. Read a second stage (the test code) start from LBA 1 (LBA 0 is boot sector) of arbitrary length starting at memory address 0x7E00. Transfer