home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / modem / mexpat22.asm < prev    next >
Encoding:
Assembly Source File  |  1994-09-02  |  6.4 KB  |  196 lines

  1. ;
  2. ; MEX PATCH version 2.2 (Note that the patch revision number bears
  3. ;           no relation to the version of MEX being patched).
  4. ;
  5. ; This is the patch file for MEX 1.1 and MexPlus(tm) (the commercial ver-
  6. ; sion).  It supercedes all previous patch files (although previous
  7. ; patch files should still work, if you update the two lines starting
  8. ; at RESTT, below).
  9. ;
  10. ; Current as of 07/25/85 (rgf).
  11. ; Copyright (c) 1985 by NightOwl Software, Inc.
  12. ; All Rights Reserved
  13. ;
  14. ; Be sure and set the following equate to FALSE, if you're patching
  15. ; the "free" version of MEX (1.12 or 1.14).  If you're patching the
  16. ; commercial MexPlus version, this equate should be left TRUE.
  17. ;
  18. FALSE    EQU    0
  19. TRUE    EQU    NOT FALSE
  20. MXPLUS    EQU    TRUE
  21. ;
  22. ; To use: make any changes you prefer, to suit your taste.  Then as-
  23. ; semble with ASM or MAC and  use MLOAD to patch the changes into MEX:
  24. ;
  25. ;    ASM MEXPAT11.AAZ            ;assemble the edited file
  26. ;    MLOAD NEWMEX.COM=MEX.OBJ,MEXPAT10    ;patch MEX
  27. ;
  28. ; Be SURE and use a completely virgin copy of MEX to make these changes.
  29. ;
  30. ; We no longer recommend placing this code in your overlay file.
  31. ;
  32. ;
  33. ; The order of the patch variables supported here will not change from
  34. ; version to version (i.e., new items will be added on to the end).
  35. ;
  36. ;
  37.     ORG    0D00H        ;location of patch variables
  38. ;
  39. LF    EQU    10        ;define ASCII linefeed code
  40. ;
  41. ;
  42. ; The following line defines the MEX service call entry point, and
  43. ; is not meant to be changed by the user
  44. ;
  45. MEX:    DS    3        ;MEX service call processor
  46.     DS    3        ;reserved
  47.     DS    1        ;reserved
  48. ;
  49. ; The following line contains the initial free-memory pointer for
  50. ; MEX.  Sophisticated modem overlays requiring additional space may change
  51. ; this pointer (ie, move it higher), and thus "protect" an area of RAM.
  52. ;
  53. MEMRY:    DS    2        ;first free memory pointer
  54. ;
  55. ; Following are the lowest-level vectors for console and list I/O used
  56. ; by MEX.  These normally point to routines that save the registers and
  57. ; vector to the appropriate BIOS routines.  Complex applications may
  58. ; need to intercept (or even replace) these routines.  If you do this,
  59. ; be sure to preserve DE, HL and BC.
  60. ;
  61. STSVEC:    DS    2        ;console status vector
  62. INVEC:    DS    2        ;console input vector
  63. OUTVEC:    DS    2        ;console output vector
  64. LVEC:    DS    2        ;list output vector
  65. LSTVEC:    DS    2        ;list status vector
  66. ;
  67. ; The following line defines the location of the default MEX prompt.
  68. ; If you'd like to provide your own initial prompt, add a DW statement
  69. ; pointing to a prompt buffer structured as follows:
  70. ;
  71. ;        DB <max size of buffer>
  72. ;        DB <length of actual prompt>
  73. ;        DB <prompt string>
  74. ;
  75. ; <maxsize> and <length> may be equal (especially if you disable the
  76. ; ID command by setting CHGPMT, below to 0); the ID command will, if
  77. ; left enabled, be limited to the <max size> value.
  78. ;
  79. PROMPT:    DS    2        ;prompt location
  80.     DS    1        ;reserved
  81. TYPLIN:    DB    23        ;for TYPE command: # lines/screen
  82. PAUSFL:    DB    1        ;for TYPE cmd: 1=pause 0=no pause
  83. SEPCHR:    DB    ';'        ;multiple command-line separator
  84. ;
  85. ; following five for SENDOUT command
  86. ;
  87. SOWAIT:    DB    4        ;# seconds waiting for a sendout echo
  88. SOREPL:    DB    8        ;# seconds waiting for initial reply
  89. SOTRIG:    DB    '>'        ;sendout trigger char from remote
  90. CANCHR:    DB    'U'-64        ;sendout char to cancel line to remote
  91. SORTRY:    DB    6        ;sendout # retries
  92. ;
  93. ;
  94. HEXFLG:    DB    0        ;hex/decimal mode
  95. ESCCHR:    DB    0AH        ;terminal mode escape char (0AH = linefeed)
  96. NOBELL:    DB    0        ;set to 1 to disable bell
  97. ;
  98. ; Buffer variables.  See BUFFERS.DOC for setup information
  99. ;
  100. PSIZE:
  101. ;
  102. if mxplus            ;printer buffer size
  103.     DB    1        ;default=1k
  104. endif                ;if you never use online printing
  105. if not mxplus            ;set this to 0 and save 1k
  106.     DB    2
  107. endif
  108. ;
  109. ASIZE:    DB    255        ;"big" capture buffer
  110. XSIZE:    DB    16        ;16K transfer buffer
  111. NSIZE:    DB    1        ;1k for 85 batch files
  112. PRELEN:    DB    40        ;maximum length of PREFIX string
  113. SUFLEN:    DB    40        ;maximum length of SUFFIX string
  114. ;
  115. ; Misc. stuff
  116. ;
  117. CDOSFL:    DB    0        ;non-zero for CDOS
  118. WTECHO:    DB    0        ;non-zero sets "wait-for-echo"
  119. KYSIZE:    DW    400        ;size of keystring area, in bytes
  120. CISFLG:    DB    0FFH        ;non-zero allows CIS file transfers
  121. CISOK:    DB    0FFH        ;non zero allows STAT CIS ON or OFF
  122. CHGPMT:    DB    0FFH        ;non-zero allows ID (prompt chg) command
  123. ERRID:    DB    0FFH        ;non-zero prints ID msg in err msgs
  124. ;
  125. ; by setting the following DB to 0, you can disable the HELP
  126. ; command, freeing up space used by the help file index.
  127. ;
  128. HELPOK:    DB    0FFH        ;non-zero allows HELP command
  129. MEXDU:    DB    0        ;user \/  alternate area for READ,LOAD,INI.MEX
  130.     DB    0        ;drive/\  & HELP.MEX (if SEARCH <>0)
  131. DEBUG:    DB    0        ;debugging in term-mode if non-zero
  132. EXCLSY:    DB    0FFH        ;non-0 excludes $SYS from batchsend, dir
  133. INIMEX:    DB    0        ;non-zero runs INI.MEX (if present) at startup
  134. RTIMER:    DB    1        ;receiver wait: # seconds [Plouff patch]
  135. PQSIZE:    DW    150        ;size of the modem-port queue
  136. PHSIZE:    DB    30        ;phone library size (# entries)
  137. SILENT:
  138. if mxplus
  139.     DB    0        ;0=silence multi-line & READ cmd echo
  140. endif
  141. if not mxplus
  142.     DB    0FFH        ;MexPlus default is no read-echo
  143. endif
  144. ALERT:    DB    255        ;alert-bell count on CALL complete
  145. EXTEND:    DB    0        ;non-zero: unknown commands goto READ processor
  146. SPLIT:    DB    0FFH        ;non-zero: splits phonelib printout, shows baud
  147. SEARCH:    DB    0        ;search mode 0,1,2,3
  148. ;
  149. ; Following is the GLOBAL secondary options table.  To
  150. ; set an option to global, change its ASCII character to a 0.
  151. ;
  152. RESTT:    DB    'ABDEKLQRSTVX'
  153.     DS    7        ;room for option expansion
  154. ;
  155. ; added on release 1.10:
  156. ;
  157. queue:    db    1        ;1=allow queueing, 0=no
  158. timbas:
  159. ;
  160. if mxplus
  161.     dw    567        ;MexPlus has different timing
  162. endif
  163. if not mxplus
  164.     dw    208        ;timing constant
  165. endif
  166. ;
  167. mode:    db    0        ;mode of modem I/O
  168. sminit:    ds    2        ;Smartmodem INIT routine adrs
  169. ssetv:    ds    2        ;SSET command: defaulted off
  170. smexit:    ds    2        ;Smartmodem EXIT routine adrs
  171.     ds    4        ;internal to MEX
  172. sodflg:    db    0        ;1=tie SENDOUT to time delay if no WTECHO
  173. autosv:    db    1        ;0=initial term mode, save off
  174. tabflg:    db    0ffh        ;non-zero=expand tabs within MEX
  175. ;
  176. ;------------------------------------------------------------
  177. ;
  178. ; Additional area used by MexPlus (not valid in MEX 1.12 or 1.14)
  179. ;
  180. if    mxplus            ;commercial version only
  181. ;
  182. smflag:    db    0ffh        ;default to software disconnect
  183.     ds    1        ;for 8086 only
  184. rvalue:    dw    0        ;RVALUE variable kept here [0D64]
  185. rvsave:    dw    0        ;Stacked RVALUE here       [0D66]
  186.     ds    12        ;internal stuff
  187. eximex:    db    0        ;0ffh=run EXI.MEX on exit [0D74]
  188.     ds    8        ;internal use only
  189. ;
  190. m7val:    db    0        ;non-zero, protocol xfer affects VALUE [0D7D]
  191.     ds    8        ;internal use only
  192. ;
  193. endif    ;mxplus
  194. ;
  195.     end
  196.