;
                                   TRIM.COM                                   

             Size (recs) CRC   Version    Author/Latest Issue      Disk
TRIM.3OM       2k (10)   875F  1.1        Bruce Morgen 7/91        Z3COM21
TRIM.4OM       2k (13)   FE21  1.1        Bruce Morgen 7/91        Z3COM21

  1- Syntax  2- Notes  3- Error Messages                                      

   TRIM will truncate COM files  at  a requested address.   It can be used  to
delete unneeded DSEG from the output of linkers like DRI's LINK,  L80,  ZLINK,
etc.  It replaces the following ZEX script, adding DU:/DIR: response and  much
speed:
           ^$ ? ?
           a0:ddtz $1.com
           k100 $2
           y 
           g0

   Vs 1.0 (6/25/88) by Bruce Morgen).
:1
    Syntax   TRIM FILENAME HEXADDR


   Saves a copy of "FILENAME" with a highest address of "HEXADDR"
:2
 TRIM Notes 

   a. TRIM should be linked to a high address (8000h or so).  

   b. TRIM  is totally  useless  at  a standard-TPA tool  (although  it  could
      readily  be  re-written  as  one)!   ZCPR 3.3 or later  (or BGii 1.13 or
      later) is therefore required.   If a late-model Z-System (NZCOM, Z3PLUS,
      Z34, or BGii 1.30 or later) is implemented,  a Type 4  linkage  of  TRIM
      will be able to use virtually the entire TPA and is preferred.

   c. TRIM will  abort with  an error message when  not loaded  to the correct
      address (attempt to run it under CP/M or Z3.0).

   d. Vs 1.1 updates (7/9/91, Bruce Morgen):
      - New Type 4 executable handles larger files.
      - Load address and EFCB name is displayed in help screen.
      - A few trival code  tweaks  done.  (I  don't  use  TRIM  much  since  I
        acquired A.E.Hawley's ZML linker, but LINK and L80 users can certainly
        still benefit from it.
:3
 Error Messages 

   "Zero-length requested, use SAVE"

   "Can't create a file that large"

   "DOS failed to open file"

   "DOS attempted to read unwritten data"

   "DOS failed to write"

   "DOS can't close file"
