I have a second stage bootloader which I need to load on a USB flash drive. I have a bootloader which loads my operating system and runs on a floppy drive.
I can copy this boot code to my USB flash drive partition, but it crashes while loading the second stage bootloader. My current code uses CHS calculations to load the file from a FAT12 file system.
I have read about the extended read function, but I'm not sure if that would be the best route to take.
What steps are needed to load a second stage bootloader by name on a FAT32 file system in x86 Assembly? And what would be a good route to take?