CS/A65 PC floppy interface
This board implements a shugart bus interface as used
in the standard PC floppy disk drives (5.25" and 3.5").
2006-11-01
Added driver code.
This file includes a small test program that
does a "readaddress" command on the WDC and either
prints the sector header (in reverse) or the
WDC status register in case of an error.
This driver runs on a PETCPU with the Commodore
PET ROMs (just 'dL"test1"' :-) and expects the
card I/O at $E8C0 (WD177x) and $E8D0 (VIA).
This driver handles the WD1770/1772 shugart bus floppy device.
It is included in the
fsibm filesystem code
and provides the interface the filesystem expects.
DINIT - initialize the device
DFORMAT - format a floppy
GETDPB - get the disk parameter block that describes the disk format
RWSEC - read or write a sector
DLOOP - loop to check disk changed, or
to switch motor on or off
The driver calls the method
dchanged to
signal that a disk has been changed.
Status: ok
Notes
|
This board implements a (shugart-type i.e PC-type)
floppy disk controller. The board has been tested
with 5.25" and 3.5" PC disk drives.
|
|
Using this board with HD-drives (i.e. 1.44M 3.5"
floppies overclocks the WDC1772 chip used in this
board, as it is only specified for DD-disks (720k).
|
Files