INT 13 - Future Domain SCSI BIOS - FORMAT DRIVE WITH BAD SECTOR MAPPING
AH = 06h
AL = interleave
(0 = default, 1 = consecutive sectors, 2 - 255 = vendor unique)
DL = hard drive ID
DH = bits 7-5 drive LUN
bit 4    defect list is available
bit 3    defect list is complete (erase drive's defect list)
bits 2-0 defect table format
(000=use defect table A, 100=use defect table B,
101=use defect table C)
ES:BX ->  defect table A, B or C (see below)
Return: CF set on error
AH = status code (see AH=01h)
Notes:  block addresses must be in ascending order (for table B, cylinder is
most significant, byte from index least significant; for table C,
cylinder is most significant, sector number least significant)
table B defect bytes from index of FFFFFFFFh indicates that the entire
track shall be reassigned
table C defect sector number of FFFFFFFFh indicates that the entire
track shall be reassigned
SeeAlso: AH=06h"FIXED",AH=07h"SCSI"

Format of defect table A:
Offset  Size    Description
00h    WORD    number of bytes remaining in table
02h    BYTE    reserved (0)
03h    BYTE    reserved (0)
04h    WORD    defect list length (big-endian) (4*number of defects)
06h  4 DWORDs  defect block addresses (big-endian)

Format of defect table B:
Offset  Size    Description
00h    WORD    number of bytes remaining in table
02h    BYTE    reserved (0)
03h    BYTE    reserved (0)
04h    WORD    defect list length (big-endian) (8*number of defects)
06h 8N BYTEs   Defect List [array]
Offset  Size    Description
00h  3 BYTEs   cylinder number of defect (big-endian)
03h    BYTE    head number of defect
04h    DWORD   defect bytes from index (big-endian)

Format of defect table C:
Offset  Size    Description
00h    WORD    number of bytes remaining in table
02h    BYTE    reserved (0)
03h    BYTE    reserved (0)
04h    WORD    defect list length (big-endian) (8*number of defects)
06h 8N BYTEs   defect list
Offset  Size    Description
00h  3 BYTEs   cylinder number of defect (big-endian)
03h    BYTE    head number of defect
04h    DWORD   defect sector number (big-endian)

See also: 1305

1306 - Future Domain SCSI BIOS - FORMAT DRIVE WITH BAD SECTOR MAPPING