On Entry:
AH
=
F13_VLSECTORS (04H)
AL
=
number of sectors to transfer
For hard discs the sector range is 1-128 assuming 512 byte sectors
For flexible discs the following formats are recognized:
Media
Sector Range
320KB
1-8
360KB
1-9
1.2MB
1-15
DL
=
device number (Flexible
<
80H, Hard disc>
=
80H)
DH
=
head number ( 0-1 5 not verified)
CH
=
track/cylinder number (not verified)
For Hard discs the high two bits of CL are the MSB of the cylinder number in
CH, making a 10 bit value. The valid range is therefore 0-1023.
For the flexible discs the valid ranges are:
Media
Track Range
320KB
0-39
360KB
0-39
1.2MB
0-79
CL
=
sector number (not verified)
For the hard disc the valid value range is 1-17.
For the flexible disc the values in the Sector Range column are also the valid input
values for this parameter.
On Exit:
AH
=
Return Status Code (See table 8.7)
Registers Altered:
AX.
F13_FORMAT_FLEX
(AH
=
OSH)
,...
This function writes a pattern of the sectors on a track of the flexible disc. One entire track is
formatted at a time, but the programmer can control the characteristics of each sector and the
number of sectors in each track. To control the sector variables the programmer supplies a table
that has one entry for each sector in the track being formatted. The entries are the sector
headers that the drive hardware uses. Also embedded in each entry is a code indicating the
desired sector size. (512 bytes is standard).
Disc
253
Need help?
Do you have a question about the Vectra and is the answer not in the manual?