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 / MBUG / MBUG115.ARC / MXSET.DOC < prev    next >
Text File  |  1979-12-31  |  5KB  |  125 lines

  1. MXSET  - The  Definitive configuration program for the  Epson  MX 
  2. printers.
  3.  
  4. This  program sets options on the MX80 or MX100.  With a compile-
  5. time  setting the program can be customized to printers  with  or 
  6. without Graftrax.
  7.  
  8. The  program can be called from within WordStar to change printer 
  9. settings or even to type text directly to the printer.
  10.  
  11. The program must be compiled using Microsoft's M80 assembler.  It 
  12. uses  certain  routines  from  Richard  Conn's  SYSLIB   linkable 
  13. subroutines. The program contains Z80 instructions.
  14.  
  15. -----------------------------------------------------------------
  16. Editor's Note:
  17. An 8080 version, MXSET23.AQM, is included in this library file.
  18. It has been compiled as MXSET23.COM as is. It has not been tested
  19. completely because your editor has an Okidata printer, but it does
  20. appear to work. We have also included the SYSLIB.REL file since
  21. two routines are required should you recompile with M80.
  22. -----------------------------------------------------------------
  23.  
  24. The main program is not specific to any operating system. It uses 
  25. the SYSLIB routines to talk to CP/M. By substituting for the 5 or 
  26. 6 relatively simple SYSLIB routines used,  it could be adapted to 
  27. another DOS such as TRSDOS.
  28.  
  29. There are four COM versions in this library:
  30. MX10.COM    - MX100 with Graftrax
  31. MX8.COM     - MX80  with Graftrax
  32. MX10NG.COM  - MX100 no  Graftrax
  33. MX8NG.COM   - MX80  no Graftrax
  34.  
  35. All  versions  have the Clear Screen/Home cursor string  3  bytes 
  36. into  the  program.  It is set at 1AH,0 for Osborne  &  Televideo 
  37. compatibles. Patch the string in there for your system. There are 
  38. 6  bytes  avalable plus the required terminating  zero.  If  your 
  39. system  does  not  support  clear  screen/cursor  home,patch   in 
  40. CR,LF,LF,LF... to leave blank lines between menus. 
  41.  
  42. The  following functions are available.  The control sequence put 
  43. to  the printer is shown in parenthesis.  The notation GTRAX  and 
  44. non-GTRAX indicate those options available only on printers  with 
  45. or without Graftrax.
  46.  
  47.     A: Select character font
  48.           1:  Set condensed ON     ( SI  )
  49.       2:  Set condensed OFF    ( DC2 )
  50.       3:  Set enlarged ON      ( SO  )
  51.       4:  Set enlarged OFF     ( DC4 )
  52.       5:  Set emphasized ON    ( ESC,'E' )
  53.       6:  Set emphasized OFF   ( ESC,'F' )
  54.           7:  Set italics ON       ( ESC,'4' )
  55.           8:  Set italics OFF      ( ESC,'5' )
  56.           9:  Set double strke ON  ( ESC,'G' )
  57.           10: Set double strke OFF ( ESC,'H' )
  58.       11: Set to subscript     ( ESC,'S',0 )
  59.       12: Set to superscript   ( ESC,'S',1 )
  60.       13: Set super/subscript OFF    ( ESC,'T' )
  61.       14: Set permanent enlarged ON  ( ESC,'W',1 )
  62.       15: Set permanent enlarged OFF ( ESC,'W',0 )
  63.           (7 - 15 are non-GTRAX)
  64.  
  65.     B: Reset printer to defaults ( ESC,'@' ) - GTRAX
  66.     B: Select character set                  - non-GTRAX
  67.       1:  North American       ( ESC,'R',0 )
  68.       2:  British              ( ESC,'R',3 )
  69.       3:  French               ( ESC,'R',1 )
  70.       4:  German               ( ESC,'R',2 )
  71.       5:  Spanish              ( ESC,'R',7 )
  72.       6:  Italian              ( ESC,'R',6 )
  73.       7:  Danish               ( ESC,'R',4 )
  74.       8:  Swedish              ( ESC,'R',5 )
  75.  
  76.     C: Set line spacing
  77.           1: Select 6 lines per inch    ( ESC,'2' )
  78.       2: Select 8 lines per inch    ( ESC,'0' )
  79.       3: Set line spacing in 1/72" increments  (ESC,'A',n )  
  80.       4: Set line spacing in 1/216" increments (ESC,'3',n ) 
  81.           (4 is non-GTRAX only)
  82.  
  83.     D: Set page size
  84.       1: Set form length in lines   ( ESC,'C',n )
  85.       2: Set form length in inches  ( ESC,'C',0,n )
  86.       3: Set width                  ( ESC,'Q',n )
  87.  
  88.     E: Set uni-directional print    ( ESC,'U' )
  89.            - non-GTRAX
  90.     E: Set vertical tabs            ( ESC,'B',n,... )
  91.            - GTRAX
  92.     F: Set horizontal tabs          ( ESC,'D',n,... )
  93.     G: Set to top of form (FF)      ( FF )
  94.     H: Turn ON perforation skip     ( ESC,'N',n )
  95.     I: Turn OFF perforation skip    ( ESC,'O' )
  96.     J: Enable out of paper signal   ( ESC,'9' )
  97.     K: Disable out of paper signal  ( ESC,'8' )
  98.     L: Print test
  99.        ABCDEFGHIJKLMNOPQRSTUVWXYZ  
  100.       abcdefghijklmnopqrstuvwxyz    CR LF
  101.       1234567890-=['\;,./
  102.       !@#$%^&*()_+]"|:<>?           CR LF LF
  103.  
  104.     M: Set bit 8 handling      - GTRAX only
  105.       1:  Bit 8 as is          ( ESC,'#' )
  106.       2:  Bit 8 always ON      ( ESC,'>' )
  107.       3:  Bit 8 always OFF     ( ESC,'=' )
  108.  
  109.     N: Home printhead          ( ESC,'<' )
  110.            - GTRAX only
  111.     O: Set medium density graphics ( ESC,'K',03H,30H ) MX100
  112.            - GTRAX only                ( ESC,'K',01H,E0H ) MX80
  113.     P: Set high density graphics   ( ESC,'L',06H,60H ) MX100
  114.            - GTRAX only                ( ESC,'L',03H,C0H ) MX80
  115.     Z: Keyboard to printer 
  116.        All keys pressed are passed to the printer as pressed.
  117.        This includes all control keys, except ^Z. 
  118.        Use ^Z to end. ^C is passed to printer in this mode.
  119.  
  120.  
  121.  
  122. Frans Van Duinen
  123. Toronto, Ont
  124.  
  125. 21 Apr 84