mkdir -p bin bin/dest set -e # Create a blank floppy image. dd if=/dev/zero of=bin/drive.img bs=512 count=2880 status=none # Assemble and copy the bootloader. nasm boot.s -f bin -o bin/boot dd if=bin/boot of=bin/drive.img bs=512 count=1 conv=notrunc status=none # Assemble the system. nasm system.s -f bin -o bin/dest/system # Check the system fits in 32KB. # The bootloader can't load files greater than a 64KB segment, # and the system uses the upper 32KB of its segment for buffers. if [ $(wc -c