Constants

Registers

FLOPPY_STATUS_REGARead-only register
FLOPPY_STATUS_REGBRead-only register
FLOPPY_DIGITAL_OUTPUT_REGXXX
FLOPPY_TAPE_DRIVE_REGXXX
FLOPPY_MAIN_STATUS_REGRead-only register
FLOPPY_DATARATE_SELECT_REGWrite-only register
FLOPPY_DATA_FIFOXXX
FLOPPY_DIGITAL_INPUT_REGRead-only register
FLOPPY_CONF_CONTROL_REGWrite-only register

Floppy commands

FLOPPY_READ_TRACKXXX
FLOPPY_SPECIFYXXX
FLOPPY_SENSE_DRIVE_STATUSXXX
FLOPPY_WRITE_DATAXXX
FLOPPY_READ_DATAXXX
FLOPPY_RECALIBRATEXXX
FLOPPY_SENSE_INTERRUPTXXX
FLOPPY_WRITE_DELETED_DATAXXX
FLOPPY_READ_IDXXX
FLOPPY_READ_DELETED_DATAXXX
FLOPPY_FORMAT_TRACKXXX
FLOPPY_DUMPREGXXX
FLOPPY_SEEKXXX
FLOPPY_VERSIONXXX
FLOPPY_SCAN_EQUALXXX
FLOPPY_PERPENDICULAR_MODEXXX
FLOPPY_CONFIGUREXXX
FLOPPY_LOCKXXX
FLOPPY_VERIFYXXX
FLOPPY_SCAN_LOW_OR_EQUALXXX
FLOPPY_SCAN_HIGH_OR_EQUALXXX

DOR bitflag

FLOPPY_DOR_MOTDSet to turn drive 3’s motor ON
FLOPPY_DOR_MOTCSet to turn drive 2’s motor ON
FLOPPY_DOR_MOTBSet to turn drive 1’s motor ON
FLOPPY_DOR_MOTASet to turn drive 0’s motor ON
FLOPPY_DOR_IRQSet to enable IRQs and DMA
FLOPPY_DOR_RESETReset on clear
FLOPPY_DOR_DSELSelect drive

MSR bitflag

FLOPPY_MSR_RQMXXX
FLOPPY_MSR_DIOXXX
FLOPPY_MSR_NDMAXXX
FLOPPY_MSR_CBXXX
FLOPPY_MSR_ACTDXXX
FLOPPY_MSR_ACTCXXX
FLOPPY_MSR_ACTBXXX
FLOPPY_MSR_ACTAXXX

Floppy

.activeXXX
.motorXXX
Summary
Functions
floppy_lba_to_chsConvert LBA to CHS
floppy_strategyDo a read or write operation
floppy_openOpen the device for I/O operations
floppy_closeClose a device.

Functions

floppy_lba_to_chs

Convert LBA to CHS

In

EAXLBA

Out

ALCylinder
AHHead
CLSector

floppy_strategy

Do a read or write operation

In

EAXAddress of Buffer

floppy_open

Open the device for I/O operations

floppy_close

Close a device.

Close