disk-image

Where to store the bootloader on a floppy image?

I'm going to write and test a bootloader. In order to do this, I am planning to copy the bootloader onto a floppy image file and mount it in a VM. However, I'm not sure where to put the bootloader's machine code. Does it just get dumped into the first few bytes of the file? ...