Bootloader-tester is a project mainly written in Shell, it's free.
Write a bootlodaer in asm(i8086), then make it diskimage to run!
./build.sh
qemu -hda output.img