Description
Format disk cylinder
Entry
Exit
Description
Chapter 24: INT 13H, Disk Handler
If the sector(s) verified correctly, CF=0 and AH=0. If
the sector(s) did not verify, CF=1 and AH=status byte.
AH=05H
AL=no. of sectors
BX=offset of format data buffer
CH=LSB of cylinder no.
CL bits 0..5=sector no.
CL bits 6..7=MSB of cylinder no.
DH=head no.
DL=80H (drive 0) or 81H (drive 1)
ES=segment of format data buffer
ES:BX=ptr to list of address fields
CF=error flag
AH=status
Formats the sectors specified by the format buffer.
This contains a four byte entry for each sector to
format:
Byte1=track no
Byte2=head no.
Byte3=sector no.
Byte4=sector size
If the track(s) formatted correctly, CF=0. If the track(s)
did not format correctly, CF=1 and AH gives the cause.
Sector sizes are as follows:
0=128 bytes
1=256 bytes
2=512 bytes
3=1024 bytes
Other information required for formatting (such as gap
length, filler byte and sectors per track) is obtained
from the appropriate disk parameter table.
209