home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / pcmag / setup.lzh / SETUP.DOC < prev   
Text File  |  1988-11-24  |  5KB  |  103 lines

  1.           SETUP                                     Jeff Prosise
  2.           ______________________________________________________
  3.  
  4.           Purpose:  Permits menu-oriented selection and immediate
  5.                     transmission of printer control codes from
  6.                     within a running application program.
  7.  
  8.           Format:   SETUP            (loads command into memory)
  9.                     <Ctrl-Right Shift>          (activates menu)
  10.                     <[Shift]<Fx>      (selects [deselects] mode)
  11.                     <Esc>            (activates selection(s) and
  12.                                  returns to application program)
  13.  
  14.                     Fx is a Function key (F1 through F10) that
  15.                     sends the required control sequence to the
  16.                     printer.  Shift-Fx toggles the selected
  17.                     printer mode off.
  18.  
  19.           Remarks:  After loading SETUP (normally via your
  20.                     AUTOEXEC.BAT file), the printer mode
  21.                     selection menu program is displayed by
  22.                     pressing the Ctrl-Right Shift key
  23.                     combination.  This can be done from within
  24.                     application programs that do not take over
  25.                     the keyboard interrupts; the application is
  26.                     simply suspended until you leave SETUP by
  27.                     pressing the Esc key.  (Application programs
  28.                     such as XyWrite III that do take over the
  29.                     keyboard interrupts can be used with
  30.                     SETUP.COM if they themselves provide the
  31.                     option of temporarily returning to DOS
  32.                     control.)
  33.  
  34.                     Printer permitting, more than one mode can be
  35.                     selected at once by pressing additional
  36.                     function keys.  The default printer choices
  37.                     are for the Epson RX/FX series.  Option 1
  38.                     shows how to modify the program for other
  39.                     printers.
  40.  
  41.                     Notes:
  42.  
  43.                     1.   SETUP.COM is a memory-resident program
  44.                          (approximately 3K in length), and so is
  45.                          subject to conflicts with other memory-
  46.                          resident software.  Several users have
  47.                          reported that it is incompatible with
  48.                          Prokey, for example.  Similarly, while
  49.                          SETUP.COM is compatible with SideKick,
  50.                          the combination of SuperKey and SideKick
  51.                          has been reported to be incompatible.
  52.  
  53.           Option 1: If you have access to an IBM or Microsoft
  54.                     macro assembler, the easiest way to modify
  55.                     SETUP for other printers (or to use LPT2: or
  56.                     LPT3: instead of LPT1:) is to call up the
  57.                     SETUP.ASM file (included with these
  58.                     utilities) in any ASCII word processor.  You
  59.                     can then make your modifications and
  60.                     reassemble the file.
  61.  
  62.                     Even if you do not have a macro assembler and
  63.                     must therefore use DEBUG.COM to modify
  64.                     SETUP.COM directly, print out and read the
  65.                     SETUP.ASM file.  It is heavily commented, and
  66.                     will give you a good idea of how the
  67.                     different menu strings and printer control
  68.                     strings are organized.  Note, however, that
  69.                     the specific values shown in SETUP.ASM are in
  70.                     decimal notation; values entered via DEBUG
  71.                     must be in hexadecimal notation.
  72.  
  73.                     The following offset addresses, not those
  74.                     originally published in PC Magazine, should
  75.                     be used:
  76.  
  77.                     The menu color attributes (4F and 70) are at
  78.                     offsets xxxx:013F and xxxx:0140.
  79.  
  80.                     To change the port number from LPT1: to LPT2:
  81.                     (or LPT3:) change the default 00 at xxxx:0C7A
  82.                     and at xxxx:0C84 to 01 (or 02).
  83.  
  84.                     The start of the menu text table (532 bytes,
  85.                     beginning with C9) is at offset xxxx:0151.
  86.                     The "P" in PRINTER SETUP MENU" is at
  87.                     xxxx:0172.
  88.  
  89.                     The printer control strings themselves begin
  90.                     at xxxx:09A1.  Each function key (and each
  91.                     shifted function key, with the exception of
  92.                     F19 and F20) can be assigned a string up to
  93.                     16 bytes long.  Each string must include a
  94.                     delimiter of FF (255 decimal) that marks the
  95.                     end of the string.  The beginning of the
  96.                     string for each successive function key
  97.                     starts at an address that is a multiple of 16
  98.                     bytes above the base address (xxxx:09A1) of
  99.                     the table.  You must pad the strings with
  100.                     zeros for any locations that are not used by
  101.                     actual control codes, so that each string
  102.                     begins on a 16-byte boundary.
  103.