Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 13h Function 08h
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   13h     Function:   08h
 
  Title:       Get Drive Parameters
 
  See also:    Get Drive Data
 
  Description:                                          [PC] [AT] [PS/2]
 
     Returns various parameters for the specified drive. On the PC and
     PC/XT, this function is supported on fixed disks only.
 
     The value returned in register DL reflects the true number of
     physical drives attached to the adapter for the requested 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 360K, 40 track, 5.25")
                                         02h (if 1.2 megabytes,
                                              80 track, 5.25")
                                         03h (if 720K, 80 track, 3.5")
                                         04h (if 1.44 megabytes,
                                              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
                                    -♦-