From dc49494cc77c4a9a08f71e9e5d6ea73d2c4faae1 Mon Sep 17 00:00:00 2001 From: Harley Travis Date: Sun, 7 Jun 2026 21:12:13 -0500 Subject: Create Mount2CaseAFDC.HC This file adds a case to Mount2's first switch statement to configure FDC BlkDevs. It is to be included after the BDT_ATAPI case. --- Adam/Patches/Mount2CaseAFDC.HC | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Adam/Patches/Mount2CaseAFDC.HC diff --git a/Adam/Patches/Mount2CaseAFDC.HC b/Adam/Patches/Mount2CaseAFDC.HC new file mode 100644 index 0000000..c29ba4a --- /dev/null +++ b/Adam/Patches/Mount2CaseAFDC.HC @@ -0,0 +1,74 @@ +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 following params are stored as they will be sent to the ctrlr:\n" + "Enter them in hex, prefixed with $PURPLE$0x$FG$.\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<