home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol177 / ws$mx80.asm < prev    next >
Encoding:
Assembly Source File  |  1984-09-10  |  3.4 KB  |  143 lines

  1. ;    USER4 04/10/81 USER PATCH AREA
  2. ;    being an Epson MX-80 patch file for 
  3. ;        Wordstar RELEASE 3.0 May, 1981
  4. ;    see USER4 listing, Installation manual, p. F-3
  5. ;
  6. TBASE    EQU 0100H
  7. ;
  8.     ORG TBASE + 0B4H    ; location for printer description
  9.     DB 'Epson MX-80 printer -- GRAFTRAX+ '
  10. ;
  11.      ORG TBASE + 590H    ; begins after user 3 area
  12. IOBYTE    EQU TBASE - 100H+3    ; location of system I/O assignments
  13. BDOS    EQU TBASE - 100H+5    ; BDOS entry point
  14. LISTF    EQU 5            ; CP/M list output system call func#
  15. ;
  16. BS    EQU 08H
  17. LF    EQU 0AH
  18. FF    EQU 0CH
  19. CR    EQU 0DH
  20. DEL    EQU 07FH
  21. ESC    EQU 01BH
  22. ;
  23. ;    printer characteristics and printing method
  24. ;
  25. ;    printer type / overstrike method
  26. ;    POSMTH=FF: printer can overstrike only by CR w/o LF
  27. ;    POSMTH=0:  printer can overprint by backspacing as well as
  28. ;        by CR w/o LF
  29. ;    POSMTH=1: printer is a daisy-wheel or similar incremental printer.
  30. ;        Can print w/o spacing; can space and roll in small incr.
  31. ;
  32. POSMTH:    DB 0FFH    ; do not use backspacing -- it takes up too much time
  33. BLDSTR:    DB 3    ; 3 strikes for boldspace -- may not be needed with MX80
  34. DBLSTR:    DB 2    ; number of strikes for "double-strike'
  35.     DB 0,0,0
  36. ;
  37. ;    CR/LF string
  38. PSCRLF:    DB 2
  39.     DB CR
  40.     DB LF
  41.     DB 0,0,0,0
  42.     DB 0,0,0,0
  43. ;
  44. ;    string to return char to beginning of same line
  45. PSCR:    DB 2
  46.     DB CR
  47.     DB 0    ; null, for delay
  48.     DB 0,0,0,0
  49. ;
  50. ;    string to do CR and half-line feed
  51. ;    used if rollup (below) is not installed
  52. PSHALF:    DB 0    ; not needed
  53.     DB 0,0,0,0,0,0
  54. ;
  55. ;    string to backspace, i.e., for overprinting
  56. PBACKS:    DB 1
  57.     DB BS
  58.     DB 0,0,0,0
  59. ;
  60. ;    string to set to compressed mode (see May 83 BYTE, p. 203)
  61. PALT:    DB 1
  62.     DB 8FH    ; shift-in. Does not work with emphasized mode
  63.     DB 0,0,0
  64. ;
  65. ;    string to reset to to uncompressed characters
  66. PSTD:    DB 1
  67.     DB 92H    ; DC2                           
  68.     DB 0,0,0
  69. ;
  70. ;    string to roll carriage up for before superscripts
  71. ;        and after subscripts
  72. ROLUP:    DB 3    ; use ^PQ (user 1 below) to turn off the mode
  73.     DB ESC
  74.     DB 'S'
  75.     DB 1
  76.     DB 0
  77. ;
  78. ;    string to roll carriage down, as after superscripts
  79. ROLDOW:    DB 3    ; use ^PQ (user 1 below) to turn off the mode 
  80.     DB ESC
  81.     DB 'S'
  82.     DB 0
  83.     DB 0
  84. ;
  85. ;    user-defined functions  -- see May 83 BYTE, p. 203, for source
  86. ;
  87. USR1:    DB 2    ; ^PQ  -- used to reset superscript and supscript modes
  88.     DB ESC,'T'
  89.     DB 0,0     
  90. ;
  91. USR2:    DB 1    ; ^PW -- used to turn on double width. Automatically
  92. ;        turns off at line end, or use USR3 below
  93.     DB 08EH
  94.     DB 0,0,0
  95. ;
  96. USR3:    DB 1    ; ^PE -- used to turn off double width
  97.     DB 94H
  98.     DB 0,0,0
  99. ;
  100. USR4:    DB 0    ; so far undefined
  101.     DB 0,0,0,0
  102. ;
  103. ;    change ribbon color - used to control italics mode
  104. RIBBON:    DB 2    ; italics character set on
  105.     DB ESC,34H
  106.     DB 0,0
  107. ;
  108. RIBOFF:    DB 2    ; italics character set off
  109.     DB ESC,35H
  110.     DB 0,0
  111. ;
  112. ;    string to initialize printer -- may want to
  113. ;    initialize to various optional modes, skip perfs, etc.
  114. ;    Modify later after basic functions work
  115. PSINIT:    DB 1
  116.     DB CR    ; to position head at left margin of paper
  117.     DB 0,0,0
  118.     DB 0,0,0,0
  119.     DB 0,0,0,0
  120.     DB 0,0,0,0    ; up to 16 char can be sent
  121. ;
  122. ;    string to be sent at end of session, for resetting modes etc.
  123. PSFINI:    DB 6        ; for now
  124.     DB ESC,46H    ; turn off emphasized mode
  125.     DB ESC,48H    ; turn off double-strike, superscript and subscript
  126.     DB 92H        ; turn off compressed characters
  127.     DB 94H        ; turn off double-width characters
  128.     DB 0,0
  129.     DB 0,0,0,0
  130.     DB 0,0,0,0    ; again, up to 16 char
  131. ;
  132.      DB 0,0        ; reserved
  133. ;
  134. ;    character used for 'strikeout' effect -- called via ^X
  135. SOCHR:    DB '-'        ; change to other if desired
  136. ;
  137. ;    character used for underscore (except underlining is available)
  138. ULCHR:    DB '_'
  139. ;
  140. ;    for now, other mods seem unnecessary
  141. ;
  142.     end
  143.