Preview

Skrillex

Good Essays
Open Document
Open Document
3045 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Skrillex
bios.h biosdisk Header bios.h Prototype int biosdisk(int cmd, int drive, int head, int track, int sector, int nsects, void *buffer);
Description
biosdisk accesses interrupt 0x13 for BIOS disk operations on the drive specified by the drive argument. For floppy drives, 0 identifies the first drive, 1 is for the second drive, and so forth. This function is not available under DOSX.

cmd specifies the disk operation to perform. head, track, sector, nsects, and buffer provide further information for the command specified bycmd.
The following command values are available: cmd Meaning
0
Resets disk system by a hard reset; all other parameters are ignored.
1
Returns the status of the last disk operation; all other parameters are ignored.
2
Reads the specified disk sectors. The head, track, and sector arguments specify the starting sector. The nsects argument specifies the number of sectors to read. The read data is stored in buffer.
3
Writes disk sectors from memory. The head, track, and sector arguments specify the starting sector. The nsects argument specifies the number of sectors to write. The data is read from buffer.
4
Verifies sectors. The head, track, and sector arguments specify the starting sector. The nsects argument specifies the number of sectors to verify.
5
Formats a track. The head and track arguments specify the track to format. Buffer stores the sector headers.
6
Formats a track and sets bad sector flags.
7
Formats the drive beginning at a specific track.
8
Gets the current drive parameters and stores them in buffer.
9
Initializes drive-pair characteristics.
10
Does a long read.
11
Does a long write.
12
Does a disk seek.
13
Alternates disk reset.
14
Reads sector buffer.
15
Writes sector buffer.
16
Tests the specified drive to see if it is ready.
17
Recalibrates the drive.
18
Performs diagnostics on controller RAM.
19
Performs drive diagnostics.
20
Performs controller internal diagnostics.
Return

You May Also Find These Documents Helpful

Related Topics