home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / p.lbr / PRTASM.HZP / PRTASM.HLP
Encoding:
Text File  |  1991-11-18  |  9.8 KB  |  196 lines

  1. ;
  2.                                  PRTASM.COM                                   
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5. PRTASM.COM     5k (37)   DAAC  2.1        Gene Pizzetta 3/91       Z3COM16
  6.  
  7.   1- Usage  2- Datestamps  3- Tabs  4- Errors  5- Configuration  6- Notes     
  8.  
  9.    PRTASM is  a ZCPR3 utility  that prints  assembly  source  code  and  other
  10. program listings  on the CP/M LST device.  It is also handy for quick printing
  11. of documentation.   It prints the filename and page number in the  upper right
  12. corner of each page.   To the left of the filename is printed the  file's date
  13. stamp, if it's available;  otherwise,  the current date and time are used.  If
  14. no clock is available,  no date and time are printed at all.   As distributed,
  15. PRTASM is configured for Epson  printers,  but the configuration can be easily
  16. changed.  Runs under ZCPR 3.x only.  
  17.  
  18.    Vs 1.0 (9/17/87) by Gene Pizzetta.
  19. :1
  20.  Syntax   PRTASM {dir:}fn.ft {/options} {{dir:}fn.ft {/options}} {...}
  21.  
  22.    At least one input filename is required.   Names in the  file  list  may be
  23. separated by any number of spaces  and  commas,  but  no  comma  is  permitted
  24. between a filename and its  following options.   Ambiguous  filenames  are not
  25. accepted, but will not abort the program.  If a DU or DIR specification is not
  26. given, the current drive/user is assumed.   Filenames  beginning  with a slash
  27. must be preceded by a DU spec or just a colon.
  28.  Options - 1/2 
  29.  
  30.    Options following a slash may be  given  after each filename and only apply
  31. to the filename that immediately  precedes  them.   Commas  cannot  separate a
  32. filename from its options.   Options need not  be in any particular order, but
  33. obviously the starting page number cannot immediately  follow  an  ending page
  34. number.
  35.  
  36.      n    Starting page.  The number of the page at which 
  37.           printing should begin (from 1 to 65535).  Zero is 
  38.           accepted, but it has the same effect as 1 (which is 
  39.           like not giving a starting page at all.  Printing 
  40.           begins at the top of the given page.
  41.  
  42.     -n    Ending page.  The number of the page at which printing 
  43.           should stop (from 1 to 65535).  Zero is accepted, but 
  44.           it has the same effect as not giving an ending page at 
  45.           all.  Printing stops at the end of the given page, so 
  46.           if the starting page and ending page are the same, one 
  47.           page will be printed.
  48.  Options - 2/2 
  49.  
  50.      L    Line mode.  The starting page and ending page numbers 
  51.           are interpreted as starting and ending line numbers 
  52.           instead.  Printing will begin with the given starting 
  53.           line number and stop after the ending line is printed.  
  54.           In this mode page numbering on the output copy will 
  55.           begin at 1.
  56.  
  57.    Once printing  has  begun,  pressing  any key will  abort  printing  of the 
  58. current file.   If the key is ^C,  PRTASM will return to the operating system; 
  59. otherwise, it will skip to the next file in the list and continue printing.
  60.  
  61.    The number of lines on  a printed page and  whether the  printer can handle
  62. formfeeds is taken from the ZCPR3 environment descriptor.  Make sure these are
  63. set properly.   It is particularly desirable that PRTASM use formfeeds so that
  64. if a line or two overflows the margin, the header will not get out of sync.
  65. :2
  66.  Datestamping 
  67.  
  68.    To the left of the filename in the header,  PRTASM  prints a  date and time
  69. from the file's date stamp, if one is available.   The  modification date will
  70. be used, if there is one.   If not,  PRTASM  tries  for  a  creation date.  If
  71. neither date is available, the current date and time are used instead.   If no
  72. system clock is available, no date and time are printed at all.
  73. :3
  74.  Expanding Tabs 
  75.  
  76.    Tabs are not expanded by PRTASM.   It is  assumed that most modern printers 
  77. are IBM-compatible and thus handle tabs correctly.  If your printer needs tabs
  78. sent as the  corresponding number of spaces,  run your file  through  a filter 
  79. program before printing it with PRTASM.   If you would prefer a future version 
  80. to expand tabs, please let the author know.
  81. :4
  82.  Errors 
  83.  
  84.    If a file cannot be found,  an ambiguous filename is encountered, an option
  85. is invalid, or an illegal directory is  referenced,  PRTASM  will  display  an
  86. error message and then continue with the next file in the file list.  It will,
  87. however, set the program error flag on exit.
  88.  
  89.    The error flag value will be set according to the last  error  encountered:
  90. 2, invalid directory;  8, ambiguous filename;  10, file not found; 19, invalid
  91. option; 4, printer not ready.
  92. :5
  93.  Configuration 
  94.  
  95.    The distributed version is configured for Epson  printers and  compatibles,
  96. but is easily configured for other printers.   PRTASM expects,  however,  that
  97. your printer is capable of printing a 96-character line in elite pitch.
  98.  
  99.    PRTASM  can  be  easily  configured   using   ZCNFG  and  the  accompanying
  100. PRTASMnn.CFG file.   The name of the CFG file should  not be changed,  so that
  101. ZCNFG can always find it,  even if  you  rename  PRTASM.   Most of  the  ZCNFG
  102. configuration menus concern  printer  escape  strings  required by  PRTASM for
  103. putting the printer in elite pitch  (12 characters per inch);  for setting the
  104. printer's left margin to column 8;  for resetting  the  printer to its default
  105. mode; for putting the printer into boldface, emphasized,  or double-strike for
  106. printing the header; and for cancelling the printer's boldface mode.
  107.  
  108.    In addition to printer configuration,  there are  two  other  configuration
  109. options for selecting whether the date in the header is printed in American or
  110. European format and  whether  the  time  is  printed  in civilian  or military
  111. format.
  112.  
  113.    For full details of the configuration options see the ZCNFG help screens.
  114. :6
  115.  PRTASM Notes - 1/4 
  116.  
  117.    a. Vs 2.1 updates (3/29/91, Gene Pizzetta):
  118.       - Added options to begin and/or end printing on a specific page or line.
  119.       - Configurable for American or European date format.  
  120.       - New civilian time format prints "am" and "pm".  
  121.       - Changed parser from ZFNAME to ZPRSFN; now looks for invalid dir specs.
  122.  
  123.    b. Vs 2.0 updates (11/24/90, Gene Pizzetta):
  124.       - Added a larger file buffer for speedup. 
  125.       - Incorporated several code improvements,  size cut by 3 sectors to less
  126.         that 4K, and speed increased by about 20 percent.
  127.       - No longer supports type-3 assembly.  
  128.       - Added ZCNFG configuration; converted to Zilog mnemonics.
  129.  
  130.    c. Vs 1.9 updates (7/18/90, Gene Pizzetta):
  131.       - Now prints source  of date and time:  "Modified",  "Created",  or just
  132.         "Printed" if no file stamp is available.  
  133.       - Bugs squashed:  1) failure to set the correct DMA address if the mili-
  134.         ary time flag was false;  2) if a key was pressed while the header was
  135.         being sent to the printer, PRTASM would not detect it.
  136.  PRTASM Notes - 2/4 
  137.  
  138.    d. Version 1.8 updates (7/11/90, Gene Pizzetta):
  139.       - Modified to accept a list of files.  
  140.       - file date now  used in the header,  if it has  a  modification  (first
  141.         choice) or create stamp; otherwise, the current date is used.
  142.       - Back to Intel mnemonics.  
  143.       - If any files in the file list are not found,  PRTASM skips to the next
  144.         file after printing an error message.  
  145.       - Printing can be aborted at any time with ^C.  Any other key will abort
  146.         the file currently being printed and move to the next in the list.  
  147.       - A two-byte page counter is now used so it will number past 255.  
  148.       - Formfeeds in the file are trapped and  replaced with a single carriage 
  149.         return/linefeed.  
  150.       - A printer capable of 96 columns in elite pitch is assumed.  
  151.       - Page length and formfeed ability are obtained from the environment.  
  152.       - A configuration byte allows selection of civil or military time.  
  153.       - Patching for non-Epson escape codes no longer requires re-assembly.  
  154.       - Added a type-3 header.  
  155.       - Program error flag is set if any file in the file list cannot be found
  156.         or if a file specification is ambiguous.
  157.  PRTASM Notes - 3/4 
  158.  
  159.    e. Version 1.7 updates (7/16/90, J. Mortensen):
  160.       - Translated to Zilog mnemonics.  
  161.       - Time of day added to header.
  162.       - ZSLIB routines added for printing time and date.  
  163.       - Added LST status check and ZCPR3 check.  
  164.       - Masks high bits for WordStar files.
  165.  
  166.    f. Version 1.6 updates (8/7/89, Gene Pizzetta):
  167.       - minor change in header format
  168.  
  169.    g. Version 1.5 updates (7/26/89, Gene Pizzetta):
  170.       - now prints date in header line if a  real-time clock is  working under
  171.         DateStamper or ZDOS (must be linked with version 4 SYSLIB's)
  172.  
  173.    h. Version 1.4 updates (6/10/89, Gene Pizzetta):
  174.       - slight change in screen display
  175.  PRTASM Notes - 4/4 
  176.  
  177.    i. Version 1.3 updates (3/11/89, Gene Pizzetta):
  178.       - adds DU filespec and ZCPR3 TCAP support
  179.       - incorporates SYSLIB routines
  180.       - now preserves the CP and no longer warm boots
  181.  
  182.    j. Version 1.2 updates (10/13/88, Gene Pizzetta):
  183.       - eliminates CP/M Plus dependencies.  
  184.       - adds printer cleanup on user abort.   
  185.       - still sends a failure code to  the BDOS on error, to support CP/M Plus
  186.         conditional submits.   CP/M 2.2  doesn't recognize it,  but it does no 
  187.         harm.
  188.  
  189.    k. Version 1.1 updates (9/20/87, Gene Pizzetta):
  190.       - added page numbering and boldface filename in header
  191.  
  192.    l. PRTASM was developed using the SLRMAC assembler and SLRNK+ linker:
  193.      slrmac prtasm/m
  194.      slrnkp prtasm/n,/v,/a:100,/j,prtasm,zslib/s,dslibs/s,vlibs/s,
  195.          z3libs/s,syslibs/s,/e
  196.