This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

DOS_SET_DRIVE

Set the default drive

Table of Contents

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.