Format track


For floppydisk drives:
Entry:
AH = 05h
AL = number of sectors to create on this track
CH = track
CL = sector
DH = head
DL = drive
ES:BX = pointer to array of 4-byte address fields

byte 1 = track
byte 2 = head
byte 3 = sector
byte 4 = bytes/sector 0=128, 1=256, 2=512, 3=1024

Return:
CF set if error occurred
AH = status code (see AH=1 above)

For harddisk drives:
Entry:
AH = 05h
AL = interleave value (XT only)
ES:BX = 512-byte format buffer
the first 2*(sectors/track) bytes contain F,N for each sector
F = 00 for good sector, 80h for bad sector
N = sector number
CH = cylinder number (bits 8,9 in high bits of CL)
CL = sector number
DH = head
DL = drive
Return:
AH = status code (see AH=1 above)