home *** CD-ROM | disk | FTP | other *** search
- SAP v4.3 -- SORT AND PACK CP/M DISK DIRECTORY -- 03/19/85
-
- 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 the with 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 VERBOSE, CPMONLY, ONLY14,
- ONLY22, and DELZRO options at the beginning of the file to
- either YES or NO, depending upon your tastes. Desiderata is
- as follows:
-
- a) If VERBOSE is YES, all messages which appear on the
- screen are full-length (as in SAP40). If VERBOSE is NO,
- all messages are truncated for conservation of memory.
-
- b) 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+.
-
- c) 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.
-
- d) 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.
-
- e) 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.
-
- f) If DELZRO is YES, any file of zero length not beginning
- with the character "-" will be deleted (as in SAP40).
- If DELZRO is NO, no file will be deleted solely on the
- basis of its length.
-
- 2) Assemble the source program with ASM, M80, MAC, etc. Link
- edit, LOAD, or MLOAD as required. Run as needed.
-
- NOTE: The SAP43.COM file enclosed with the library SAP43.LBR has been
- assembled with the following options:
-
- VERBOSE EQU NO
- CPMONLY EQU YES
- ONLY14 EQU NO
- ONLY22 EQU YES
- DELZRO EQU NO
-
- ========================================================================
-
- 07/25/85 Added some pushes and pops so that the switch routine will
- v44 swap the entire contents of the two directory entries.
- Previously it only swapped the part after it found a difference
- which sometimes resulted in flag bits moving from one file
- to another. - Bob Clyne
-
- 03/19/85 Inserted my name where it belonged under the v4.2 release
- v4.3 notice, added conditional assembly option for verbose mode
- which will, if selected, permit the program to assemble in
- under 1k. Added conditional assembly option for cpmonly mode
- which suppresses check for MP/M and CP/M+.
- - Dennis Quinn
-
- 03/06/85 Removed "trash directory" feature to make program more
- v4.2 user-friendly, made "delete zero-length files" an
- assembly-time option, as there are more programs than
- MCAT which make use of zero-length files.
- - Dennis Quinn
-
- 02/28/85 Minor cleanup, made compatible with all assemblers.
- v41 - Irv Hoff
-
- 09/17/84 Added 'Previously sorted' statement that was included in v37
- v40 but got dropped from v38 when the Shell-Metnzer sort was put
- in. It still rewrites the directory even if previously
- sorted, to insure erased programs at end of directory are
- properly cleared. - Irv Hoff
-
- 07/27/84 Corrected sorting of last directory entry.
- v39
-
- 10/16/83 Now using a Shell-Metzner sort which speeds the sorting time
- v38 considerably, especially on large directories. (SFK)
-
- 07/27/83 Shows an error flag for MP/M and CP/M+ both. Rewrites the
- v37 directory even if previously sorted, to insure erased pro-
- grams at end of directory are properly cleared.
- - Irv Hoff
-
- 1977 Written by L. E. Hughes. Modified extensively since by Bruce
- Ratoff, Keith Petersen, James Prest, Ron Fowler, Frank Gaude,
- Sigi Kluger, Irv Hoff and likely others.
-
- ========================================================================