Assembly Language Help (alang.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 21h Functions 1Bh and 1Ch
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Functions:  1Bh and 1Ch
 
  Title:       Get Drive Data
 
  See also:    Select Disk, Get Drive Parameters, @ChkDrv
 
  Description:
 
     Obtains allocation information about the default disk drive
     (Function 1Bh) or about a specified disk drive (Function 1Ch).
     Gets a pointer to the media identification byte from its file
     allocation table.
 
     Input                    Output
 
     AH = 1Bh for default     If function successful
          drive                 AL = Sectors per cluster
        = 1Ch for any           DS:BX = segment:offset of media ID byte
          drive                 CX = Size of physical sector (bytes)
     DL = Drive code for        DX = Number of clusters for default or
          1Ch only                   specified drive
          (0 = default,
           1 = A,...)         If function unsuccessful (invalid drive or
                              critical error)
                                AL = FFh
                                    -♦-