DD_INTERFACE
Check for the disk drive interface
The following are the floppy disk driver routines. The unit number is 0…3 for the uPD765A. On the +3, unit 0 is drive A: and unit 1 is drive B:, or optionally, both A: and B: may be mapped onto unit 0. Units 2 and 3 are not used.
With the exception of DD_INTERFACE, none of these routines may be called if the floppy disk interface is not present.
All routines assume that interrupts are enabled on entry, and will still be enabled on exit.
Check for the disk drive interface
Initialise the disk driver
Setup disk parameters
Set try/retry count
Read a sector
Write a sector
Check a sector
Format a track
Read a sector identifier
Check disk is suitable to write to
Log in a new disk
Select a standard format
Check to see if unit 1 is present
Check drive status
Ask what type of drive
Set copy protection encode routine
Initialise XDPB for a given format
Initialise DPB for a given format
Seek to required track
Low level uPD765A read command
Low level uPD765A write command
Turn on motor
Start motor off timeout
Turn off motor