home *** CD-ROM | disk | FTP | other *** search
- ;=======================================================================
- ;
- ; THIS PROGRAM READS THE DISK DIRECTORY TRACKS, SORTS THEM ALPHABETICALLY
- ; THEN REPLACES THEM ON THE DISK. ALL UNUSED OR ERASED AREAS ON THE DI-
- ; RECTORY TRACK ARE REFORMATTED WITH CONTINUOUS 'E5' CHARACTERS. (THIS
- ; ERASES PREVIOUS FILE NAMES WHICH HAVE BEEN DEACTIVATED.) 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
- ; 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 SOMEBODY ELSE COULD RECOVER
- ; 6) OPTIONALLY ERASES ALL FILES OF ZERO LENGTH (EXCEPT THOSE
- ; STARTING WITH '-' FOR CATALOG USE WITH MAST.CAT)
- ;
- ; - Notes by Irv Hoff W6FFC
- ;
- ;=======================================================================
- ;
- ; 08/07/86 I looked into the other SAP 44. The original SAP 44 was put
- ; into the public domain 7/25/85 by Bob Clyne. His fix is the
- ; one that I incorporated into SAP 50.
- ; - Richard Huff
- ;
- ; 08/05/86 I saw someone else's comments on their version 44 and imple-
- ; v50 mented their bug fix into my version. This now prevents SAP
- ; from making partial switches that could mess up the high or-
- ; der bits of the file names or types. A very small window of
- ; vulnerability, but now fixed.
- ; - Richard Huff
- ;
- ; 08/03/86 I've finally rewritten the mainline to not do useless CALLs.
- ; v49 Instead I've coded each routine to fall into the next one.
- ; Has anyone every tried SAP 43 with CP/M 1.4 to see if it
- ; really works? SAP 49 will work the same as SAP 43 in this
- ; respect, but I don't see how it could possibly work! In
- ; case anyone is interested in making SAP 49 compatible with
- ; 8080 code and all assemblers, I've included SAP 45 as a
- ; start. Oh yeah, versions 46 through 49 assemble with the
- ; Z80MR public domain assembler. I have no idea if any other
- ; assemblers are compatible. - Richard Huff
- ;
- ; 08/03/86 The CLEAN routine has been completely rewritten to automati-
- ; v48 cally put all empty entries at the end of the buffer. This
- ; speeds up the subsequent SORT and PACK.
- ; - Richard Huff
- ;
- ; 08/01/86 The sort is completely rewritten for OPTIMUM speed.
- ; v47 - Richard Huff
- ;
- ; 07/31/86 Converted to Z80-only mnemonics using XLATE5, dropped the
- ; v46 8080 compatibility concept and further optimized instructions
- ; for the Z80 CPU. Also fixed a bug in the sort which only
- ; shows up on large sorts (such as on a hard disk).
- ; - Richard Huff
- ;
- ; 06/28/86 I've now modified even more of the program to be efficient
- ; v45 and to take advantage of the Z80 opcodes where possible. I
- ; added a new conditional assembly option. It lets me delete
- ; all 0-length files, regardless of file name, while still
- ; having the capability to do everything v44 did.
- ; - Richard Huff
- ;
- ; 06/07/86 Organized locations of subroutines to give sanity to the
- ; v44 program. Also added code to prevent overwriting of CCP when
- ; reading the directory; instead, it now only processes as
- ; many directory sectors as will fit in available memory. As
- ; a finishing touch some Z80 opcodes are used as a conditional
- ; assembly option, and the sort algorithm was made faster.
- ; - Richard Huff
- ;
- ; 03/20/85 Inserted my name where it belonged under the v42 release
- ; v43 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 CP/M-only
- ; mode which suppresses check for MP/M and CP/M+.
- ; - Dennis Quinn
- ;
- ; 03/06/85 Removed "trash directory" feature to make program more user-
- ; v42 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 (added in v43)
- ;
- ; 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 - Bill Duerr
- ;
- ; 10/16/83 Now using a Shell-Metzner sort which speeds the sorting time
- ; v38 considerably, especially on large directories.
- ; - Sigi Kluger
- ;
- ; 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.
- ;
- ;=======================================================================