home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol5n12.zip / SETUP.DOC < prev   
Text File  |  1986-09-11  |  6KB  |  108 lines

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