CX track (cylinder) number in the high 10 bits (see below)
DL drive: 0-3=diskette; 80H-81H=hard disk
ES:BX addr of buffer containing formatting info (see notes)
Info: This formats a single track on one head of a diskette or hard
disk. Any existing data on that track is destroyed.
CX Bits 6-7 of CL are the high two bits of the 10-bit value whose
ES:BX The layout of the data ate ES:BX varies by drive type and BIOS:
PC (and all diskette operations)
ES:BX points to a series of 4-byte values, one for each sector on
the track. The layout is 'CHSL':
+0 1 bCylinder track number: 0-n
+1 1 bHead head number: 0-n
+2 1 bSector sector number: 1-n
+3 1 bLenCode 0=128, 1=125, 2=512, 3=1024
There is one of these 4-byte structures for each sector on the
track (for instance, 36 bytes for a 9-sector-per-track diskette).
Interleave is set up by organizing them non-sequentially (e.g.,
AT (and all modern hard disk drives and BIOSes)
ES:BX points to a series of 2-byte values, one for each sector on
the track. The layout is 'FS':
+0 1 bFlag 00=good, 80=bad/unusable
+1 1 bSector head number: 0-n
There is one of these 2-byte structures for each sector on the
track (for instance, 110 bytes for a 55-sector-per-track hard
disk). Interleave is set up by organizing them non-sequentially.
XT (very old XT BIOSes only)
ES:BX is not used; instead AL contains an interleave value
See Also: DOS fn 440dH 42H (IOCTL format track)