User`s guide
BDOS FUNCTION 100: SET DIRECTORY LABEL
Entry Parameters:
Registers C: 64H
DE: FCB Address
Returned Value:
Registers A: Directory Code
H: Physical or Extended Error
The Set Directory Label function creates a directory label, or updates the existing
directory label for the specified drive. The calling program passes in register pair DE
the address of an FCB containing the name, type, and extent fields to be assigned to
the directory label. The name and type fields of the referenced FCB are not used to
locate the directory label in the directory; they are simply copied into the updated or
created directory label. The extent field of the FCB, byte 12, contains the user's
specificat-on of the directory label data byte. The definition of the directory label
data byte is:
bit 7 - Require passwords for password-protected files
(Not supported in nonbanked CP/M 3 systems)
6 - Perform access date and time stamping
5 - Perform update date and time stamping
4 - Perform create date and time stamping
0 - Assign a new password to the directory label
If the current directory label is password protected, the correct password must be
placed in the first eight bytes of the current DMA, or have been previously estab-
lished as the default password (see Function 106). If bit 0, the low-order bit, of byte
12 of the FCB is set to 1, it indicates that a new password for the directory label has
been placed in the second eight bytes of the current DMA.
Note that Function 100 is implemented as an RSX, DIRLBL.RSX, in nonbanked
CP/M 3 systems. If Function 100 is called in nonbanked systems when the DIRLBL.RSX
is not resident an error code of 0FFH is returned.
3-78
BDOS Function Calls CP/M 3 Programmers Guide