So I am creating a custom bootloader:
nasm -f bin boot.asm -o boot.bin
It is 512 bytes. How do I place this into a floppy image and boot with qemu?
dd if=boot.bin of=floppy.img bs=512 count=2880 dd if=floppy.img of=floppy2.img bs=512 count=1 qemu-system-i386 -fda floppy2.img
floppy2.img gets resized to 512 bytes instead of the normal size of 1.44MB. Is this the correct way? I would rather not use any fancy tools, if it can be done with
dd, that would be great.