From edd15150f34b040d5ab68a1b418705c0de895a1e Mon Sep 17 00:00:00 2001 From: Harley Travis Date: Sat, 20 Jun 2026 20:00:32 -0500 Subject: Re-arrange patch files Some of the patches are applied to files in subdirectories of ::/Kernel and ::/Adam. The directory tree has been re-arranged in such a way as to allow them to be #included without having the compiler backtrack to their parent directory. --- Adam/ABlkDev/Patches/Mount2CaseAFDC.HC | 80 ++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Adam/ABlkDev/Patches/Mount2CaseAFDC.HC (limited to 'Adam/ABlkDev/Patches/Mount2CaseAFDC.HC') diff --git a/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC b/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC new file mode 100644 index 0000000..2e70791 --- /dev/null +++ b/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC @@ -0,0 +1,80 @@ +// 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. +// ADAM PATCH: Must be installed after kernel patches! + +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<