diff options
| -rw-r--r-- | DskImg.HC | 9 | ||||
| -rw-r--r-- | KFloppy.HC | 11 | ||||
| -rw-r--r-- | KFloppyA.HH | 9 | ||||
| -rw-r--r-- | KFloppyB.HH | 7 | ||||
| -rw-r--r-- | KFloppyDMA.HC | 7 | ||||
| -rw-r--r-- | ReadMe.TXT | 14 |
6 files changed, 41 insertions, 16 deletions
@@ -4,6 +4,13 @@ #define IMG_SIZE 1474560 /* + Copyright (C) 2025 Harley Travis <yoshi128k@gmail.com>. + This work is free. You can redistribute it and/or modify it under the + terms of the Do What The Fuck You Want To Public License, Version 2, + as published by Sam Hocevar. See the Copying.TXT file for more details. +*/ + +/* Make sure IRQ6 is on and pointed to the correct handler! @@ -64,4 +71,4 @@ U8 DskImg() return 0; } -DskImg;
\ No newline at end of file +DskImg; @@ -1,8 +1,9 @@ /* - New, (hopefully) Less Messy Floppy Driver - Copyright (C) 2025 Yoshi128k. - Licensed under version 2 of the Do What The Fuck You Want To Public License - See COPYING for details. + New, (hopefully) Less Messy Floppy Driver + Copyright (C) 2025 Harley Travis <yoshi128k@gmail.com>. + This work is free. You can redistribute it and/or modify it under the + terms of the Do What The Fuck You Want To Public License, Version 2, + as published by Sam Hocevar. See the Copying.TXT file for more details. */ Bool FDCIrq = FALSE; @@ -474,4 +475,4 @@ U0 FDCWriteMulti(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen) AdamLog("Read Results:\nST0: %d\nST1: %d\nST2: %d\nCyl: %d\nHead: %d\nSect: %d\nSect Size: %d\n",st0,st1,st2,rcyl,rhd,rsect,rsectsize); FDCMotorCtrl(base, FDC_MOTOR_OFF); -}
\ No newline at end of file +} diff --git a/KFloppyA.HH b/KFloppyA.HH index 4e5cfdb..29bb7e3 100644 --- a/KFloppyA.HH +++ b/KFloppyA.HH @@ -1,3 +1,10 @@ +/* + Copyright (C) 2025 Harley Travis <yoshi128k@gmail.com>. + This work is free. You can redistribute it and/or modify it under the + terms of the Do What The Fuck You Want To Public License, Version 2, + as published by Sam Hocevar. See the Copying.TXT file for more details. +*/ + // FDC uses IRQ6 = int 26h #define I_FDC 0x26 #define IRQ_FDC 6 @@ -95,4 +102,4 @@ #define FDC_ST1_NO_WRITE 0x02 // Not Writable: set when attempting to write to a write-protected disk #define FDC_ST1_NO_ID 0x01 // No Addr. Mark: set when an ID/(deleted) data address mark cannot be found. -// Status Register 2 (ST2) flags
\ No newline at end of file +// Status Register 2 (ST2) flags diff --git a/KFloppyB.HH b/KFloppyB.HH index 7fb9e36..f046126 100644 --- a/KFloppyB.HH +++ b/KFloppyB.HH @@ -1,3 +1,10 @@ +/*
+ Copyright (C) 2025 Harley Travis <yoshi128k@gmail.com>.
+ This work is free. You can redistribute it and/or modify it under the
+ terms of the Do What The Fuck You Want To Public License, Version 2,
+ as published by Sam Hocevar. See the Copying.TXT file for more details.
+*/
+
// headers for floppy driver
public extern Bool FDCIrq;
public extern U16 fdc_base;
diff --git a/KFloppyDMA.HC b/KFloppyDMA.HC index bde62ff..9b2e963 100644 --- a/KFloppyDMA.HC +++ b/KFloppyDMA.HC @@ -1 +1,8 @@ +/*
+ Copyright (C) 2025 Harley Travis <yoshi128k@gmail.com>.
+ This work is free. You can redistribute it and/or modify it under the
+ terms of the Do What The Fuck You Want To Public License, Version 2,
+ as published by Sam Hocevar. See the Copying.TXT file for more details.
+*/
+
U8 FDC_DMA[0x4800]; // Floppy DMA buffer
@@ -1,11 +1,7 @@ -Copyright (c) 2025 Yoshi128k. -The source code included in this package is licensed under Version 2 -of the Do What The Fuck You Want To Public License; the exact distribution -terms are described in Copying.TXT. -The driver and all demonstration software included with this software package comes -with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. - - +Copyright (C) 2025 Harley Travis <yoshi128k@gmail.com>. +This work is free. You can redistribute it and/or modify it under the +terms of the Do What The Fuck You Want To Public License, Version 2, +as published by Sam Hocevar. See the Copying.TXT file for more details. These files contain the code required for the low-level floppy disk driver. Currently, there is no block device code that implements this driver as I @@ -51,4 +47,4 @@ This is a bit ambiguous, as there are two principle forms of DMA in the PC world 2. PCI Busmastering, which is used by modern hardware and is very different from ISA DMA. TheTinkerer on the TOS Discord suggested that Terry *may* have been fine ISA DMA, but I would still -consider my usage of it to be at least a little blasphemous (though it is not mentioned in the Charter).
\ No newline at end of file +consider my usage of it to be at least a little blasphemous (though it is not mentioned in the Charter). |
