summaryrefslogtreecommitdiff
path: root/Adam/ABlkDev
diff options
context:
space:
mode:
authorHarley Travis <harleytravis123@outlook.com>2026-06-27 15:36:06 -0500
committerHarley Travis <harleytravis123@outlook.com>2026-06-27 15:36:06 -0500
commit5adc149b0cdca7cec61b69f7eb9004f1a6b9b437 (patch)
tree6c25e7ae0a1ebfa6c39ac7fad705d9e4dbf09a35 /Adam/ABlkDev
parent3e0d5c028b5972c0611e656ab324f5780540297b (diff)
downloadtempleos-floppy-driver-5adc149b0cdca7cec61b69f7eb9004f1a6b9b437.tar.gz
Update Mount2CaseAFDC.HC
Most of the changes to this file were adding missing semicolons, and fixing semantic errors with some of the prompts.
Diffstat (limited to 'Adam/ABlkDev')
-rw-r--r--Adam/ABlkDev/Patches/Mount2CaseAFDC.HC20
1 files changed, 10 insertions, 10 deletions
diff --git a/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC b/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC
index 2e70791..76296ba 100644
--- a/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC
+++ b/Adam/ABlkDev/Patches/Mount2CaseAFDC.HC
@@ -5,24 +5,24 @@
case BDT_FLOPPY:
do {
- "Include $PURPLE$0x$FG$ prefix.\nI/O Port Base:\n";
+ "Include $FG,5$0x$FG$ prefix.\nI/O Port Base:\n";
GetS(base0_buf,STR_LEN);
- } while (!Str2I64(base0_buf))
+ } 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"
+ } while (!(0<=unit<=3));
+ "\nIf 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) {
+ 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"
+ "count, sector size, and data rate take single decimal digits.\n";
do {
"Cylinders:\n";
GetS(cyl_buf,STR_LEN);
@@ -30,7 +30,7 @@ case BDT_FLOPPY:
do {
"Heads:\n";
heads=GetChar-'0';
- } while (1<=heads<=2);
+ } while (!(1<=heads<=2));
do {
"Sectors:\n";
GetS(spt_buf,STR_LEN);
@@ -38,14 +38,14 @@ case BDT_FLOPPY:
do {
"Sector Size (128<<X bytes):\n";
size=GetChar-'0'
- } while (0<=size<=7);
+ } while (!(0<=size<=7));
if (size==0) {
do {
"DTL (data length):\n";
GetS(dtl_buf,STR_LEN);
} while (1<=Str2I64(dtl_buf)<=128);
} else {
- dtl_buf="0xFF"; // If sect size is not 128, DTL is set to 255
+ StrCpy(dtl_buf,"0xFF"); // If sect size is not 128, DTL is set to 255
}
do {
"Step Rate:\n";
@@ -76,5 +76,5 @@ case BDT_FLOPPY:
"3=1 Mbit (Not Supported)\n\n";
"Data Rate:\n";
bps=GetChar-'0'
- } while (0<=bps<=3);
+ } while (!(0<=bps<=3));
} \ No newline at end of file