home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / BEEHIVE / ZSUS / Z3HELP-5.LBR / T.LBR / TRIM.HZP / TRIM.HLP
Text File  |  2000-06-30  |  2KB  |  53 lines

  1. ;
  2.                                    TRIM.COM                                   
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5.                2k (9)    3563  1.0        Bruce Morgen 6/88        Z3COM9
  6.  
  7.   1- Syntax  2- Notes  3- Error Messages                                      
  8.  
  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. :1
  20.  
  21.  
  22.    Syntax:  TRIM FILENAME HEXADDR
  23.  
  24.  
  25.    Saves a copy of "FILENAME" with a highest address of "HEXADDR"
  26. :2
  27.  
  28. TRIM Notes:
  29.  
  30.    a.  TRIM should be linked to a high address (8000h or so).  
  31.  
  32.    b.  TRIM  is totally  useless at  a standard-TPA tool  (although  it  could 
  33.        readily  be  re-written as  one)!   ZCPR 3.3 or later  (or BGii 1.13 or 
  34.        later) is therefore required.
  35.  
  36.    c.  TRIM will  abort with  an error message when not loaded  to the correct 
  37.        address (attempt to run it under CP/M or Z3.0).
  38. :3
  39.  
  40. Error Messages:
  41.  
  42.    "Zero-length requested, use SAVE"
  43.  
  44.    "Can't create a file that large"
  45.  
  46.    "DOS failed to open file"
  47.  
  48.    "DOS attempted to read unwritten data"
  49.  
  50.    "DOS failed to write"
  51.  
  52.    "DOS can't close file"
  53.