User`s guide

File attributes tl', t2', and t3' are defined by CP/M 3. (They are described in
Section 2.3.4.) Attributes fl' through f4' are not presently used, but can be useful for
application programs, because they are not involved in the matching program used
by the BDOS during Open File and Close File operations. Indicators f5' through f8'
are reserved for use as interface attributes.
Upon return, Function 30 returns a Directory Code in register A with the value 0
if the function is successful, or OFFH, 255 Decimal, if the file specified by the refer-
enced FCB is not found. Register H is set to zero in both of these cases. If a physical
or extended error is encountered', the Set File Attributes function performs different
actions depending on the BDOS error mode (see Function 45). If the BDOS error
mode is the default mode, a message identifying the error is displayed at the console,
and the program is terminated. Otherwise, Function 30 returns to the calling pro-
gram with reg'ls-Ler A set to OFFH, and register H set to one of the following physical
or extended error codes:
01 Disk I/O error
02 Read-Only disk
04 Select error
07 File password error
09 ? in filename or filetype field
3-45
BDOS Function Calls CP/M 3 Programmers Guide