C# Class Mona.FDC

ファイルを表示 Open project: higepon/mona Class Usage Examples

Public Methods

Method Description
GetFAT ( ushort pos ) : ushort
Read ( byte count, ushort ptr, byte track, byte sector, byte head, byte drive ) : bool
ReadSectors ( ushort pos, ushort count, ushort ptr ) : void

Read sectors.

Reset ( byte drive ) : bool
SearchFile ( string fn ) : ushort

Private Methods

Method Description
ConvertFileName ( string fn ) : string

Method Details

GetFAT() public static method

public static GetFAT ( ushort pos ) : ushort
pos ushort
return ushort

Read() public static method

public static Read ( byte count, ushort ptr, byte track, byte sector, byte head, byte drive ) : bool
count byte
ptr ushort
track byte
sector byte
head byte
drive byte
return bool

ReadSectors() public static method

Read sectors.
public static ReadSectors ( ushort pos, ushort count, ushort ptr ) : void
pos ushort start sector
count ushort number of sectors to read
ptr ushort es:bx = read address (es = 64kb align, bx = 512 bytes align)
return void

Reset() public static method

public static Reset ( byte drive ) : bool
drive byte
return bool

SearchFile() public static method

public static SearchFile ( string fn ) : ushort
fn string
return ushort