In the declaration of biosdisk or _bios_disk function if we give the cmd = _DISK_RESET the function reset the disk system by ignoring the all other parameters and _DISK_STATUS returns the status of the last disk operation, ignoring the all other parameters.
For cmd =_DISK_READ, _DISK_WRITE, or _DISK_VERIFY (2, 3 or 4), biosdisk and _bios_disk functions also use other parameters shown below:
Parameter |
What It Does |
head
track
sector |
These three specify the location of starting sector for the specified operation. (minimum possible values may be head = 0, track = 0 and sector =1) |
nsectors |
This specifies the number of sectors to read or write |
buffer |
It points to the buffer where data is to be read and written |
If the value of cmd is = 5 (_DISK_FORMAT), biosdisk and _bios_disk use the following parameters as according to the description in the table. It is always recommended that you should take care while you are using _DISK_FORMAT and you should know what you are going to with. Lack of knowledge or even a small mistake may make you to face a big loss of data.
Parameter |
What It Does |
head
track |
These specify the location of the track to format |
buffer |
It points to a table of sector headers to be written on the named track |
|