home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / ddr.arc / DDR.ASM next >
Encoding:
Assembly Source File  |  1984-06-20  |  768 b   |  19 lines

  1. COMMENT ~
  2.                 DDR.COM         Copyright,  1984  by  Your Own Devices
  3.                                 JDS, 4 FEB 84
  4.  
  5.                 To be used in a batch file to read the Default DRive.
  6.                 Sets a return code of 0=A, 1=B, ....
  7.  
  8.         ~
  9.  
  10. CODE    SEGMENT PARA PUBLIC
  11.         ;
  12.         MOV AH,19H      ; Setup to call DOS fn 19, "Current Disk"
  13.         INT 21H         ; DOS fn interrupt
  14.         MOV AH,4CH      ; Result of fn 19 in AL is the result code we want
  15.         INT 21H         ; Call the fn and return
  16.         ;
  17. CPYRGHT DB 'Copyright 1984,  Your Own Devices',13,10,0
  18. CODE    ENDS
  19.         END