for label in hdb1 hdb4 hdb5 hdb6 hda1_ccc hda2_ddd hda5_fff hda4_eee hda6_ggg hda7_hhh do echo "$label" > "$label.id" nasm -I ../lmacros/ bootimg.asm -D_PAYLOADFILE=::empty,::label,"'${label^^}'","$label.id",::rename,"$label.id",part.id \ -D_SPC=1 -D_BPE=16 -D_SPI=38000 -D_SPF=148 -D_ALIGNDATA -D_NUMROOT=512 \ -D_CHS_HEADS=255 -D_CHS_SECTORS=63 -D_UNIT=80h -D_MEDIAID=0F8h \ -D_DEFAULT_LABEL="'${label^^}'" -o "$label.prt" -D_FULL=0 done bootimg$ nasm -I ../lmacros/ partdisk.asm -o partdisk.img -D_CHS_HEADS=16 -D_PAYLOAD=::primary,80h,20M,fat16_chs,hda1_ccc.prt,::primary,0,20M,fat16_chs,hda2_ddd.prt,::extended,41M,extended_chs,::logical,20M,fat16_chs,hda5_fff.prt,::extended,max,extended_chs,::logical,20M,fat16_chs,hda6_ggg.prt,::up,::up,::primary,0,20M,fat16_chs,hda4_eee.prt -D_MBR_DOSEMU_IMAGE_HEADER && file partdisk.img bootimg$ nasm -I ../lmacros/ partdisk.asm -o partdis2.img -D_CHS_HEADS=16 -D_PAYLOAD=::slot,4,::primary,1,20M,fat16_chs,hdb4.prt,::primary,0,20M,fat16_chs,hdb1.prt,::extended,21M,extended_chs,::logical,20M,fat16_chs,hdb5.prt,::up,::extended,21M,extended,::logical,20M,fat16_chs,hdb6.prt,::up -D_MBR_DOSEMU_IMAGE_HEADER && file partdis2.img ~/local.new/bin/dosemu -I "serial { com 2 device /tmp/vptty-dos }" \ -I "floppy { device disktest.img }" -dumb -td -kt -D+9d+9x \ -I "umb_a0 off" -I "disk { hdimage [...]/proj/bootimg/partdisk.img }" \ -I "disk { hdimage [...]/proj/bootimg/partdis2.img }"; stty sane