Int 13H [AT] [PS/2] Function 15H (21) Get disk type

Returns a code indicating the type of floppy or fixed disk referenced by the specified drive code.

Call with:

AH = 15H

DL = drive

00H—7FH floppy disk

80H—FFH fixed disk

Returns:

If function successful

Carry flag = clear

AH = drive type code

00H if no drive present

01H if floppy disk drive without change-line support

02H if floppy disk drive with change-line support

03H if fixed disk

and, if fixed disk (AH = 03H)

CX:DX = number of 512-byte sectors

If function unsuccessful

Carry flag = set

AH = status (see Int 13H Function 01H)

Note:

This function is not supported on the PC or PC/XT.