home *** CD-ROM | disk | FTP | other *** search
- ;
- ; MEX PATCH version 2.2 (Note that the patch revision number bears
- ; no relation to the version of MEX being patched).
- ;
- ; This is the patch file for MEX 1.1 and MexPlus(tm) (the commercial ver-
- ; sion). It supercedes all previous patch files (although previous
- ; patch files should still work, if you update the two lines starting
- ; at RESTT, below).
- ;
- ; Current as of 07/25/85 (rgf).
- ; Copyright (c) 1985 by NightOwl Software, Inc.
- ; All Rights Reserved
- ;
- ; Be sure and set the following equate to FALSE, if you're patching
- ; the "free" version of MEX (1.12 or 1.14). If you're patching the
- ; commercial MexPlus version, this equate should be left TRUE.
- ;
- FALSE EQU 0
- TRUE EQU NOT FALSE
- MXPLUS EQU TRUE
- ;
- ; To use: make any changes you prefer, to suit your taste. Then as-
- ; semble with ASM or MAC and use MLOAD to patch the changes into MEX:
- ;
- ; ASM MEXPAT11.AAZ ;assemble the edited file
- ; MLOAD NEWMEX.COM=MEX.OBJ,MEXPAT10 ;patch MEX
- ;
- ; Be SURE and use a completely virgin copy of MEX to make these changes.
- ;
- ; We no longer recommend placing this code in your overlay file.
- ;
- ;
- ; The order of the patch variables supported here will not change from
- ; version to version (i.e., new items will be added on to the end).
- ;
- ;
- ORG 0D00H ;location of patch variables
- ;
- LF EQU 10 ;define ASCII linefeed code
- ;
- ;
- ; The following line defines the MEX service call entry point, and
- ; is not meant to be changed by the user
- ;
- MEX: DS 3 ;MEX service call processor
- DS 3 ;reserved
- DS 1 ;reserved
- ;
- ; The following line contains the initial free-memory pointer for
- ; MEX. Sophisticated modem overlays requiring additional space may change
- ; this pointer (ie, move it higher), and thus "protect" an area of RAM.
- ;
- MEMRY: DS 2 ;first free memory pointer
- ;
- ; Following are the lowest-level vectors for console and list I/O used
- ; by MEX. These normally point to routines that save the registers and
- ; vector to the appropriate BIOS routines. Complex applications may
- ; need to intercept (or even replace) these routines. If you do this,
- ; be sure to preserve DE, HL and BC.
- ;
- STSVEC: DS 2 ;console status vector
- INVEC: DS 2 ;console input vector
- OUTVEC: DS 2 ;console output vector
- LVEC: DS 2 ;list output vector
- LSTVEC: DS 2 ;list status vector
- ;
- ; The following line defines the location of the default MEX prompt.
- ; If you'd like to provide your own initial prompt, add a DW statement
- ; pointing to a prompt buffer structured as follows:
- ;
- ; DB <max size of buffer>
- ; DB <length of actual prompt>
- ; DB <prompt string>
- ;
- ; <maxsize> and <length> may be equal (especially if you disable the
- ; ID command by setting CHGPMT, below to 0); the ID command will, if
- ; left enabled, be limited to the <max size> value.
- ;
- PROMPT: DS 2 ;prompt location
- DS 1 ;reserved
- TYPLIN: DB 23 ;for TYPE command: # lines/screen
- PAUSFL: DB 1 ;for TYPE cmd: 1=pause 0=no pause
- SEPCHR: DB ';' ;multiple command-line separator
- ;
- ; following five for SENDOUT command
- ;
- SOWAIT: DB 4 ;# seconds waiting for a sendout echo
- SOREPL: DB 8 ;# seconds waiting for initial reply
- SOTRIG: DB '>' ;sendout trigger char from remote
- CANCHR: DB 'U'-64 ;sendout char to cancel line to remote
- SORTRY: DB 6 ;sendout # retries
- ;
- ;
- HEXFLG: DB 0 ;hex/decimal mode
- ESCCHR: DB 0AH ;terminal mode escape char (0AH = linefeed)
- NOBELL: DB 0 ;set to 1 to disable bell
- ;
- ; Buffer variables. See BUFFERS.DOC for setup information
- ;
- PSIZE:
- ;
- if mxplus ;printer buffer size
- DB 1 ;default=1k
- endif ;if you never use online printing
- if not mxplus ;set this to 0 and save 1k
- DB 2
- endif
- ;
- ASIZE: DB 255 ;"big" capture buffer
- XSIZE: DB 16 ;16K transfer buffer
- NSIZE: DB 1 ;1k for 85 batch files
- PRELEN: DB 40 ;maximum length of PREFIX string
- SUFLEN: DB 40 ;maximum length of SUFFIX string
- ;
- ; Misc. stuff
- ;
- CDOSFL: DB 0 ;non-zero for CDOS
- WTECHO: DB 0 ;non-zero sets "wait-for-echo"
- KYSIZE: DW 400 ;size of keystring area, in bytes
- CISFLG: DB 0FFH ;non-zero allows CIS file transfers
- CISOK: DB 0FFH ;non zero allows STAT CIS ON or OFF
- CHGPMT: DB 0FFH ;non-zero allows ID (prompt chg) command
- ERRID: DB 0FFH ;non-zero prints ID msg in err msgs
- ;
- ; by setting the following DB to 0, you can disable the HELP
- ; command, freeing up space used by the help file index.
- ;
- HELPOK: DB 0FFH ;non-zero allows HELP command
- MEXDU: DB 0 ;user \/ alternate area for READ,LOAD,INI.MEX
- DB 0 ;drive/\ & HELP.MEX (if SEARCH <>0)
- DEBUG: DB 0 ;debugging in term-mode if non-zero
- EXCLSY: DB 0FFH ;non-0 excludes $SYS from batchsend, dir
- INIMEX: DB 0 ;non-zero runs INI.MEX (if present) at startup
- RTIMER: DB 1 ;receiver wait: # seconds [Plouff patch]
- PQSIZE: DW 150 ;size of the modem-port queue
- PHSIZE: DB 30 ;phone library size (# entries)
- SILENT:
- if mxplus
- DB 0 ;0=silence multi-line & READ cmd echo
- endif
- if not mxplus
- DB 0FFH ;MexPlus default is no read-echo
- endif
- ALERT: DB 255 ;alert-bell count on CALL complete
- EXTEND: DB 0 ;non-zero: unknown commands goto READ processor
- SPLIT: DB 0FFH ;non-zero: splits phonelib printout, shows baud
- SEARCH: DB 0 ;search mode 0,1,2,3
- ;
- ; Following is the GLOBAL secondary options table. To
- ; set an option to global, change its ASCII character to a 0.
- ;
- RESTT: DB 'ABDEKLQRSTVX'
- DS 7 ;room for option expansion
- ;
- ; added on release 1.10:
- ;
- queue: db 1 ;1=allow queueing, 0=no
- timbas:
- ;
- if mxplus
- dw 567 ;MexPlus has different timing
- endif
- if not mxplus
- dw 208 ;timing constant
- endif
- ;
- mode: db 0 ;mode of modem I/O
- sminit: ds 2 ;Smartmodem INIT routine adrs
- ssetv: ds 2 ;SSET command: defaulted off
- smexit: ds 2 ;Smartmodem EXIT routine adrs
- ds 4 ;internal to MEX
- sodflg: db 0 ;1=tie SENDOUT to time delay if no WTECHO
- autosv: db 1 ;0=initial term mode, save off
- tabflg: db 0ffh ;non-zero=expand tabs within MEX
- ;
- ;------------------------------------------------------------
- ;
- ; Additional area used by MexPlus (not valid in MEX 1.12 or 1.14)
- ;
- if mxplus ;commercial version only
- ;
- smflag: db 0ffh ;default to software disconnect
- ds 1 ;for 8086 only
- rvalue: dw 0 ;RVALUE variable kept here [0D64]
- rvsave: dw 0 ;Stacked RVALUE here [0D66]
- ds 12 ;internal stuff
- eximex: db 0 ;0ffh=run EXI.MEX on exit [0D74]
- ds 8 ;internal use only
- ;
- m7val: db 0 ;non-zero, protocol xfer affects VALUE [0D7D]
- ds 8 ;internal use only
- ;
- endif ;mxplus
- ;
- end
-