•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileDgetdrv()
Dsetdrv()                                                            GEMDOS

Syntax

LONG Dsetdrv( drive )
WORD drive;

Function      Dsetdrv() sets the current GEMDOS drive and returns a bitmap
              of mounted drives.

Opcode        14 (0x0E)

Availability  All GEMDOS versions.

Parameters    drive is the code of the drive to set as the default GEMDOS
              disk drive. Calling the function as:

                 bmap = Dsetdrv(Dgetdrv());

              will return the bitmap of mounted drives without changing
              the current GEMDOS drive.

Binding       move.w   drive,-(sp)
              move.w   #$0E,-(sp)
              trap     #1
              addq.l   #4,sp

Return Value  Dsetdrv() returns a LONG bit array that indicates which
              drives are mounted on the system. Bit 0 indicates drive
              'A:', bit 1 drive 'B:', etc.

See Also      Dgetdrv()