Ceci est une version archivée de
Drvmap() à 2006-01-05 20:53:02.
(Drive map)
ULONG Drvmap( VOID )
Drvmap() returns a bitmask of present drives.
Opcode
10 (0x0a)
Availability
Binding
move.w #$0a,-(sp)
trap #13
addq.l #2,sp
Return Value
The ULONG value contains a bitmask. The bit is 1 if the drive is present. Bit 0 is drive 'A', Bit 1 is drive 'B', and so on till the end.
Comments
The 32 bits unsigned long value returned can hold up to 32 drives. However, there are only 26 letters from 'A' to 'Z'. Also, the standard
GEM fileselector only lists drives from 'A' to 'P' (16 drives). If you create a custom drive (like a ramdisk drive for example) for TOS, and don't create a driver for
MetaDOS, you'll have to change the value returned here, for your drive to be listed.
Note also that under
MiNT, all drives are mounted in the U:\ directory, so drives are just subdirectories of this virtual drive.
See Also