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 08H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Drive Parameters      [PC] [AT] [PS/2]
 
  Returns various parameters for the specified drive.
 
  Input                             Output
  ══════════════════════            ════════════════════════════════════════
  AH=08H                            If function successful
  DL=drive                          Carry flag=clear
     00H-7FH floppy disk            BL=drive type
     80H-FFH fixed disk                (PC/AT and PS/2 floppy disks)
                                       01H if 360 KB, 40 track, 5.25"
                                       02H if 1.2 MB, 80 track, 5.25"
                                       03H if 720 KB, 80 track, 3.5"
                                       04H if 1.44 MB, 80 track, 3.5"
                                    CH=low 8 bits of maximum cylinder number
                                    CL=bits 6-7     high-order 2 bits of
                                                    maximum cylinder number
                                       bits 0-5     maximum sector number
                                    DH=maximum head number
                                    DL=number of drives
                                    ES:DI=segment:offset of disk drive
                                          parameter table
                                    If function unsuccessful
                                    Carry flag=set
                                    AH=status (see Int 13H Function 01H)
                                    -♦-