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.
@GetDrv Macro
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   DOS.INC
 
  Syntax:    @GetDrv
 
             @SetDrv drive
 
  Summary:   Gets or sets the current drive
 
  Argument:  <drive>     8-bit drive number (0 = A, 1 = B, ...)
 
  Returns:   For @GetDrv, drive number in AL (0 = A, 1 = B, ...);
             for @SetDrv, number of drives in AL
 
  Modifies:  AX for both; DL for @SetDrv
 
  See also:  Int 21h Functions 19h and 0Eh, @GetDir, @ChkDrv
                                    -♦-