DOS_SET_DRIVE

Set the default drive
Function AddressDescription
DOS_SET_DRIVE 012DSet the default drive

Synopsys

Set the default drive (i.e. the drive implied by all filenames that do not specify a drive).

The default drive is initially A:

Does not access the drive, but merely checks that there is a driver for it (which does not imply that the drive exists).

This only affects routines that take filename parameters.

Entry Parameters

Register Content
A Drive letter A…P, 0xFF to get the default drive

Exit Parameters

If OK:
Carry true
A = default drive
Otherwise:
Carry false
A=Error code
Always:
BC DE HL IX corrupt, all other registers preserved.
Last modified November 24, 2021: Start of +3DOS documentation (253d8cc)