ZCPR2-Specific File Name String Parser (ZFNAME) and Support
Initialize Named Directory FCB
Directory Name File Loader
DIR: Prefix Evaluator
Extended File Name Scanner
:Introduction
Four routines are included in this set:
o ZFNINIT -- Initialize Named Directory Buffers
o ZDNFIND -- Scan for Disk Directory Name
o ZDNAME -- Load All Disk Directory Name Data
o ZFNAME -- Named Directory File Name Scanner
Inputs: DE pts to FCB containing the new file name
C is the new maximum number of directory names
A is a flag indicating values to set as follows:
Bit 7 -- Set to 1 to load default FCB fm DE
Bit 6 -- Set to 1 to load name count fm C
Inputs: HL pts to first byte of DIR: prefix
A=� i� DU� for� NO� allowed
Outputs: B=Disk (B=1 if Disk A, B=0FFH if Current Disk),
C=User (C=0FFH if Current User), HL pts to colon,
Zer� Fla� Clea� (NZ� i� n� error� Zer� Fla� Se�
(Z) if error, and no valid values returned
Th� director� indicato� 'DIR:'�� i� specified� ma� b� o� on� �
of four forms:
DIRECT: -- A named directory, of up to 8 chars long
d: -- A disk drive letter
u: -- A user number
du: -- A disk drive letter and a user number
Th� du�� for� i� checke� first� s� unnecessar� dis� activit� �
in looking for the NAMES.DIR file is avoided.
Examples of valid input strings:
HELP:*.HLP A5:TEST.TXT C?:ABC.* PASCAL:*.COM
Inputs: DE pts to FCB to fill, HL pts to first byte of
targe� string; FCB is 36 bytes long
Outputs: B=Disk (B=1 for Disk A), C=User
B=0FFH if no disk specified (current disk)
C=0FFH if no user specified (current user)
C=? if all user areas specified
HL pts to terminating character
A=0 and Zero Flag Set (Z) if error in disk
or user numbers; A=0FFH and NZ if no error