qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 13H Function 15H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Disk Type      [AT] [PS/2]
 
  Returns a code indicating the type of floppy or fixed disk referenced by
  the specified drive code.
 
  Input                             Output
  ══════════════════════            ════════════════════════════════════
  AH=15H                            If function successful
  DL=drive                          Carry flag=clear
     00H-7FH floppy disk            AH=drive type code
     80H-FFH fixed disk                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)
                                    -♦-