home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR16 / LPTBUFF.ZIP / LPT-BUFF.DOC < prev   
Text File  |  1992-01-10  |  7KB  |  146 lines

  1.  
  2.      LPT-BUFF.COM -- A Stay-Resident Program to Expand the Effective Buffer
  3.                      Sizes of Your Line Printers -- By CFMartin, ASP, 12/91
  4.  
  5.      Installation:
  6.  
  7.           Install LPT-BUFF at the DOS system prompt by typing:
  8.  
  9.                LPT-BUFF LPTn=mKB
  10.  
  11.           Where:
  12.           n is 1,2 or 3, to specify which line printer you want to buffer, and
  13.           m is any number 1 through 64, to specify how many kilobytes you want
  14.                to allocate from memory to its buffer.
  15.  
  16.           n or m may be omitted, but the equals sign must be included before
  17.           the buffer size argument. The default values are LPT1 and 8 KB.
  18.  
  19.           Actually, the only important characters in the command line
  20.           are the first numerical character between 1 and 3 encountered before
  21.           the equals sign, which is taken to be the desired printer
  22.           designator; the equals sign itself, which serves as the field
  23.           delimiter; and the next one or two numerical characters
  24.           after the equals sign, which are taken to be the buffer size.
  25.           Thus, the entries:
  26.  
  27.                LPT-BUFF 1=32 and
  28.  
  29.                lpt-buff =32k
  30.  
  31.           work just like the entry
  32.  
  33.                LPT-BUFF LPT1=32KB.
  34.  
  35.      Usage:
  36.  
  37.           LPT-BUFF turns up to 64 kilobytes of your computer's random access
  38.           memory (RAM) into a buffer for your line printer.  If your printer
  39.           has a small buffer and you find yourself waiting for your computer
  40.           to finish printing one thing before it lets you start on the next,
  41.           then LPT-BUFF should be a time-saving utility for you.
  42.  
  43.      Function:
  44.  
  45.           LPT-BUFF functions in the "background", and its presence will
  46.           probably not be noticed except during printing, when three effects
  47.           may become apparent:
  48.  
  49.                o    Printing operations will no longer tie up your computer's
  50.                     CPU, at least for printing files up to the size of the
  51.                     buffer you have allocated from RAM for LPT-BUFF's use for
  52.                     the printer.
  53.                o    However, while LPT-BUFF is transferring data from the
  54.                     allocated RAM buffer to the printer in the "background",
  55.                     you may notice a decrease in speed of the "foreground"
  56.                     process, perhaps accompanied by slight pauses or apparent
  57.                     sluggishness, for example in response to keystrokes.  This
  58.                     is a part of the compromise one makes to free up the CPU
  59.                     from the limitations placed on it by a printer with a too-
  60.                     small hardware buffer.
  61.  
  62.                o    If your printer has a very small buffer (e.g., my old
  63.                     Tandy DMP-130 has only an 80-byte buffer -- enough for one
  64.                     full line of text), you may also notice it pausing
  65.                     slightly between lines.  Again, this is part of the
  66.                     compromise.
  67.  
  68.           LPT-BUFF checks the printer status before attempting to print.  If
  69.           it finds the printer not ready on 60 successive system timer cycles
  70.           (about 3 seconds), it alerts you with a blinking message on the
  71.           screen (except in graphics modes).   You may either correct the
  72.           problem with the printer, or press <Esc> to clear the buffer.
  73.  
  74.           LPT-BUFF may be installed up to three separate times during bootup,
  75.           once for each of three printers (LPT1,2 and 3).  Each printer will
  76.           be enhanced with its own new buffer, supporting simultaneous
  77.           printing on several line printers.
  78.  
  79.      Precautions and Limitations:
  80.  
  81.           LPT-BUFF may not run compatibly with all other memory-resident
  82.           software, nor has it been exhaustively tested in a variety of
  83.           systems.  However, it is simple in construction, employs widely
  84.           recognized TSR programming techniques and uses standard BIOS and DOS
  85.           functions available in DOS version 2 and later, making it likely to
  86.           operate in most DOS environments.
  87.  
  88.           LPT-BUFF is offered as-is, with no warranty expressed or implied. 
  89.           It should be thoroughly tested by the user with non-critical data
  90.           before it is committed to unrestricted use.
  91.  
  92.           THE AUTHOR TAKES NO RESPONSIBILITY FOR MALPERFORMANCE IN ANY SYSTEM.
  93.  
  94.      Programming Details:
  95.  
  96.           LPT-BUFF hooks the following interrupts:
  97.  
  98.                08h  (system timer -- to transfer data from allocated buffer
  99.                          in RAM to printer if current foreground process
  100.                          permits)
  101.                13h  (disk absolute read/write services -- to set a flag
  102.                          blocking printer data transfer during disk operations)
  103.                17h  (line printer services -- to redirect foreground process
  104.                          printer output to the allocated buffer in RAM)
  105.                28h  (DOS "ok" interrupt -- to permit background printing
  106.                          at the DOS system level)
  107.  
  108.           Any time the allocated printer buffer contains data to be
  109.           transferred to the printer, the algorithm which governs the duty
  110.           cycle of the background printing process is as follows:
  111.  
  112.                o    A minimum of six timer ticks (1/3 second) dedicated to use
  113.                     by the foreground process, then
  114.  
  115.                o    A maximum of six timer ticks by the background process, or
  116.                     until the printer reports "not ready" 25 times in
  117.                     succession.
  118.  
  119.           LPT-BUFF cannot be un-installed.  If this is required, system reboot
  120.                     will be necessary.
  121.  
  122.      Registration:
  123.  
  124.           LPT-BUFF is distributed as Shareware.  It is not "freeware" or
  125.           public domain software, but is made available to you, the user, for
  126.           evaluation under the Shareware principle of "try before buy".
  127.  
  128.           If you use LPT-BUFF regularly, you are requested to register your
  129.           copy.  Registration fee is $5.00, and may be remitted to:
  130.  
  131.                Charles F. Martin
  132.                3239 Riverview Dr.
  133.                Triangle, VA  22172
  134.  
  135.  
  136.           Charles F. Martin is a member of the Association  of Shareware
  137.           Professionals (ASP).  ASP wants to make sure that the shareware
  138.           principle works for you. If you are unable to resolve a shareware-
  139.           related problem with an ASP member by contacting the member
  140.           directly, ASP may be able to help. The ASP Ombudsman can help you
  141.           resolve a dispute or problem with an ASP member, but does not
  142.           provide technical support for members' products. Please write to the
  143.           ASP Ombudsman at 545 Grover Road, Muskegon, MI 49442 or send a
  144.           CompuServe message via CompuServe Mail to ASP Ombudsman 70007,3536.
  145.  
  146.