home *** CD-ROM | disk | FTP | other *** search
- SAP v50 -- SORT AND PACK CP/M DISK DIRECTORY -- 08/05/86
-
- This CP/M utility reads the disk directory tracks, sorts the
- entries alphabetically and then rewrites them them back to the disk.
- All unused or erased areas on the directory tracks are reformatted with
- continuous 'E5' characters. This completely removes previous file names
- from the directory which have been deactivated. Files of zero length
- may be deleted with or without the exception of files beginning with "-"
- as an assembly-time option. (This supports labeling disks for the
- catalog program MCAT.) The program works with CP/M 1.4 and CP/M 2.2 but
- does not work with CP/M 3.0 or MP/M.
-
- Sorting the directory in this manner offers many advantages.
- Some of them are:
-
- 1) Allows 'DIR' to show an alphabetized listing.
- 2) Eliminates potential problems with "UNERASE" programs by
- removing programs with a similar name that have been
- previously deactivated.
- 3) Speeds up access via 'SD' and other special programs.
- 4) Assists on working directly on the disk with 'DU', etc.
- 5) Removes files from the disk directory that somebody else
- could recover. (The data is still out there somewhere).
-
- TO USE:
-
- A>SAP43 B: B: in this case indicate the desired
- disk to be sorted and repacked. If
- not included, the logged on drive
- will be sorted.
-
- TO CONDITION FOR USE:
-
- 1) Edit the source and set the various user options at the
- beginning of the file to either YES or NO, depending upon
- your tastes. Desiderata is as follows:
-
- a) If CPMONLY is YES, no checks will be made to ensure that
- SAP is running on a CP/M 1.4 or 2.2 machine. Attempting
- to run SAP under MP/M or CP/M+ will probably damage your
- disk directory. If CPMONLY is NO, checks will be made
- to prevent SAP's execution under MP/M and CP/M+.
-
- b) If ONLY14 is YES, you are guaranteeing that SAP will be
- executed only in a CP/M 1.4 environment. If you are not
- sure, or if you are sure that SAP will never be executed
- in a CP/M 1.4 environment, set to NO.
-
- c) If ONLY22 is YES, you are guaranteeing that SAP will be
- executed only in a CP/M 2.2 environment. If you are not
- sure, or if you are sure that SAP will never be executed
- in a CP/M 2.2 environment, set to NO.
-
- d) If both ONLY14 and ONLY22 are set to NO, tests will be
- made (as in SAP40) at run time to determine the environ-
- ment. Do not set both ONLY14 and ONLY22 to YES.
-
- e) If DELZRO is YES, any file of zero length not beginning
- with the character "-" will be deleted (as in SAP40).
- If SAVDASH is NO then all zero length files beginning with
- "-" will also be deleted. If DELZRO is NO, no file will be
- deleted solely on the basis of its length.
-
- f) If ASCENDING is YES, the user areas and files in each user
- area will be sorted ascending. If set to NO then the user
- areas will still be sorted ascending, but the files within
- each user area will be sorted descending.
-
- g) If SAVDASH is YES, then files beginning with "-" will never
- be deleted by SAP. If SAVDASH is NO, then the action of
- DELZRO will be unimpaired by checking file names.
-
- h) Set MAXDRIVE to the highest drive letter on your system. Any
- attempt to access a higher drive by SAP will generate an error.
-
- 2) Assemble the source program with Z80MR or any assembler compatible
- with it. Linkedit, LOAD, or MLOAD as required. Run as needed.
-
- NOTE: The SAP50.COM file enclosed with the library SAP49.LBR has been
- assembled with the following options:
-
- CPMONLY EQU YES
- ONLY14 EQU NO
- ONLY22 EQU YES
- MAXDRIVE EQU 'B'
- DELZRO EQU YES
- SAVDASH EQU YES <== changed from SAP49!
- ASCENDING EQU YES