summaryrefslogtreecommitdiff
path: root/KFloppyB.HH
diff options
context:
space:
mode:
authorHarley Travis <harleytravis123@outlook.com>2026-05-23 23:55:17 -0500
committerHarley Travis <harleytravis123@outlook.com>2026-05-23 23:55:17 -0500
commitba700f0759a59551159e90aff2bd6d547c27179b (patch)
tree1c5e98679d0f76be4466b72c1142f3304e3a97d5 /KFloppyB.HH
parent04d039d43164f48f5266d32e783d11f166b6161c (diff)
TOSFloppy_2025-04-20T2103-0500.zip2025-04-20
This was the second and final Discord release of the TempleOS floppy disk controller driver, released April 20, 2025. This release saw mainly structure changes, plus the addition of a license file (the code, at this point, is licensed under Do What The Fuck You Want To Public License, version 2.0).
Diffstat (limited to 'KFloppyB.HH')
-rw-r--r--KFloppyB.HH19
1 files changed, 19 insertions, 0 deletions
diff --git a/KFloppyB.HH b/KFloppyB.HH
new file mode 100644
index 0000000..7fb9e36
--- /dev/null
+++ b/KFloppyB.HH
@@ -0,0 +1,19 @@
+// headers for floppy driver
+public extern Bool FDCIrq;
+public extern U16 fdc_base;
+public extern U0 CMOSGetFloppyDrives();
+public extern U0 FDCSendCmd(U16 base, U8 cmd);
+public extern U8 FDCReadData(U16 base);
+public extern U0 FDCCheckInt(U16 base, U8 *st0, U8 *cyl);
+public extern I16 fdc_mtr_ticks;
+public extern U8 fdc_mtr_state;
+public extern U0 FDCMotorOff(U16 base);
+public extern U0 FDCMotorPwrOffTimer();
+public extern U0 FDCMotorCtrl(U16 base, Bool onoff);
+public extern I8 FDCRecalibrate(U16 base);
+public extern I8 FDCReset(U16 base);
+public extern I8 FDCSeek(U16 base, U8 cyli, U8 head);
+public extern U0 FDCRead(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
+public extern U0 FDCReadMulti(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
+public extern U0 FDCWrite(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
+public extern U0 FDCWriteMulti(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);