;
                                   TRIM.COM                                   

             Size (recs) CRC   Version    Author/Latest Issue      Disk
               2k (9)    3563  1.0        Bruce Morgen 6/88        Z3COM9

  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
: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.

   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).
: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"
