// PATCH: Add the ability to configure floppy BlkDevs (part 1 of 2) // FILE: ::/Adam/ABlkDev/Mount.HC // TO INSTALL: #include this file at the end of the first switch statement. case BDT_FLOPPY: do { "Include $PURPLE$0x$FG$ prefix.\nI/O Port Base:\n"; GetS(base0_buf,STR_LEN); } while (!Str2I64(base0_buf)) do { "Drv Num:\n"; unit=GetChar-'0'; } while (0<=unit<=3) "If you have a 3.5-inch high-density (1.44 Meg)\n" "floppy disk, there are some default params you can use.\n" "Otherwise, you will need to set the manually (Intel's datasheet\n" "for the 82077AA is very useful here).\n\n" "Use default params "; If (YorN) { defaults=TRUE; } else { "The folowing parameters are used to configure the ctrlr:\n" "Most can be entered in either decimal or hex, but the head\n" "count, sector size, and data rate take single decimal digits.\n" do { "Cylinders:\n"; GetS(cyl_buf,STR_LEN); } while (!Str2I64(cyl_buf)); do { "Heads:\n"; heads=GetChar-'0'; } while (1<=heads<=2); do { "Sectors:\n"; GetS(spt_buf,STR_LEN); } while (0<=Str2I64(spt_buf)<=255); do { "Sector Size (128<