home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / t.lbr / TRIM.HZP / TRIM.HLP
Encoding:
Text File  |  1991-11-18  |  2.1 KB  |  60 lines

  1. ;
  2.                                    TRIM.COM                                   
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5. TRIM.3OM       2k (10)   875F  1.1        Bruce Morgen 7/91        Z3COM21
  6. TRIM.4OM       2k (13)   FE21  1.1        Bruce Morgen 7/91        Z3COM21
  7.  
  8.   1- Syntax  2- Notes  3- Error Messages                                      
  9.  
  10.    TRIM will truncate COM files  at  a requested address.   It can be used  to
  11. delete unneeded DSEG from the output of linkers like DRI's LINK,  L80,  ZLINK,
  12. etc.  It replaces the following ZEX script, adding DU:/DIR: response and  much
  13. speed:
  14.            ^$ ? ?
  15.            a0:ddtz $1.com
  16.            k100 $2
  17.            y 
  18.            g0
  19.  
  20.    Vs 1.0 (6/25/88) by Bruce Morgen).
  21. :1
  22.     Syntax   TRIM FILENAME HEXADDR
  23.  
  24.  
  25.    Saves a copy of "FILENAME" with a highest address of "HEXADDR"
  26. :2
  27.  TRIM Notes 
  28.  
  29.    a. TRIM should be linked to a high address (8000h or so).  
  30.  
  31.    b. TRIM  is totally  useless  at  a standard-TPA tool  (although  it  could
  32.       readily  be  re-written  as  one)!   ZCPR 3.3 or later  (or BGii 1.13 or
  33.       later) is therefore required.   If a late-model Z-System (NZCOM, Z3PLUS,
  34.       Z34, or BGii 1.30 or later) is implemented,  a Type 4  linkage  of  TRIM
  35.       will be able to use virtually the entire TPA and is preferred.
  36.  
  37.    c. TRIM will  abort with  an error message when  not loaded  to the correct
  38.       address (attempt to run it under CP/M or Z3.0).
  39.  
  40.    d. Vs 1.1 updates (7/9/91, Bruce Morgen):
  41.       - New Type 4 executable handles larger files.
  42.       - Load address and EFCB name is displayed in help screen.
  43.       - A few trival code  tweaks  done.  (I  don't  use  TRIM  much  since  I
  44.         acquired A.E.Hawley's ZML linker, but LINK and L80 users can certainly
  45.         still benefit from it.
  46. :3
  47.  Error Messages 
  48.  
  49.    "Zero-length requested, use SAVE"
  50.  
  51.    "Can't create a file that large"
  52.  
  53.    "DOS failed to open file"
  54.  
  55.    "DOS attempted to read unwritten data"
  56.  
  57.    "DOS failed to write"
  58.  
  59.    "DOS can't close file"
  60.