#!/bin/sh nasm -o boot.img boot.asm if test $? -ne 0; then exit 1 fi stat -c "%n: %s" boot.img stat -c "%n: %s" bzImage stat -c "%n: %s" ramdisk.img touch EOF stat -c "%n: %s" EOF tar -cvf data.tar -b1 bzImage ramdisk.img EOF cat boot.img data.tar > floppy.img stat -c "%n %s" floppy.img tcc -lbsd -Og -g -Wall -o lstar lstar.c ./lstar floppy.img split -b 1474560 floppy.img mv xaa floppy1.img mv xab floppy2.img #qemu-system-i386 -no-reboot -boot c -cpu 486 -m 32M -drive "file=floppy1.img,if=none,format=raw,id=drive1" -device floppy,drive-type=144,drive=drive1 -drive "file=floppy2.img,if=none,format=raw,id=drive2" -device floppy,drive-type=144,drive=drive2 -nographic && reset #qemu-system-i386 -cpu 486 -m 32M -drive "file=floppy1.img,if=floppy,format=raw,drive-type=144" #bochs -q -f bochs.config 'boot:floppy' 'floppya: 1_44=boot.img, status=inserted'