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 / CPM / MODEMS / MODEM7 / M7KP-2.MSG < prev    next >
Text File  |  2000-06-30  |  7KB  |  175 lines

  1.  M7KP-2.MSG -- Kaypro II overlay file for MDM724.    2/18/84
  2.  
  3.      M7KP-2.ASM is a modified overlay of M7KP-1.ASM.  It has been written
  4. to work with any MDM7xx.COM file from MDM711 to MDM724.  This overlay has
  5. modified the set command to allow the user to change:
  6.  
  7.     -  baud rate (300 or 1200),         (300 baud at startup)
  8.     -  word length (7 or 8)             (8 bit word at startup)
  9.     -  number of stop bits (1 or 2)     (1 bit stop bit at startup)
  10.     -  parity (none, even, or odd)      (no parity at startup)
  11.        (A null line will not change the value from the last change.
  12.  
  13.      You will want to look the file over carefully.  There are a number of
  14. options that you can use to configure the program to suit your taste. This
  15. file adapts the Kaypro II (and most likely Kaypro 4 and 10 and Xerox 820)
  16. computer to the modem program (MDM724.COM).
  17.  
  18.        TO USE:
  19.         1.     Load down the .COM file (MDM724.COM in MDM724.LBR)
  20.         2.     Load down the overlay file (M7KP-2.AQM may be in M7OVL-2.LBR)
  21.         3.     Load down the phone number overlay file if you want to
  22.                   change the menu.  Current version is M7NM-6 for MDM724.
  23.                   Use M7NM-5 FOR MDM720.
  24.                   (you may change phone numbers later with M7LIB)
  25.         4.      Un-squeeze the AQM files.
  26.         5.      Edit M7KP-2.ASM filling in values for your own needs.
  27.         6.      Assemble with ASM.COM or equivalent assembler.
  28.         7.      Use DDT to overlay the results of this program to the
  29.                   original .COM file (suggest you save in new .COM file):
  30.  
  31.                 A>DDT MDM724.COM
  32.                 DDT VERS 2.2
  33.                 NEXT  PC
  34.                 4900 0100
  35.                 -IM7KP-2.HEX            (note the "I" command)
  36.                 -R                      ("R" loads in the .HEX file)
  37.                 -IM7NM-6.HEX        *   if you want to change the
  38.                 -R                  *   name overlay also
  39.                 NEXT  PC
  40.                 4900 0000
  41.                 -G0                     (return to CP/M)
  42.                 A>SAVE 72 MDM7.COM      (now have a modified .COM file)
  43.  
  44.      NOTE: The value "72" is the number of 256 byte blocks that the
  45. program requires.  This value is for MDM724.  To calculate the value for
  46. other versions, use the hi-order byte under "NEXT" and convert to
  47. decmial and, if the low order byte is zero, subtract one.  If the low
  48. order byte is not zero do not subtract one. (ie: 4 x 16 + 9 - 1 = 72)
  49.  
  50.      Values you may want to change are listed below.  (The location, in
  51. hex, is listed to the right so you can patch the values with DDT.)
  52.  
  53. TOUCHPULSE:   DB    'T'     T=touch, P=pulse (Smartmodem-only)      105H
  54. TOGGLEBK:     DB    NO      yes=allow toggling of bksp to rub       112H
  55. ADDLF:        DB    NO      no=no LF after CR to send file in       113H
  56.                             terminal mode (added by remote echo)
  57. TOGGLELF:     DB    YES     yes=allow toggling of LF after CR       114H
  58. XOFFTST:      DB    NO      yes=checks for XOFF from remote while   11AH
  59.                             sending a file in terminal mode
  60. XONWAIT:      DB    NO      yes=wait for XON after CR while         11BH
  61.                             sending a file in terminal mode
  62. TOGXOFF:      DB    YES     yes=allow toggling of XOFF checking     11CH
  63. IGNORCTL:     DB    NO      yes=CTL-chars above ^M not displayed    11DH
  64. BRKCHR:       DB    '@'-40H ^@ = Send a 300 ms. break tone          120H
  65. NOCXNNCT:     DB    'N'-40H ^N = Disconnect from the phone line     121H
  66. LOGCHR:       DB    'L'-40H ^L = Send logon                         122H
  67. LSTCHR:       DB    'P'-40H ^P = Toggle printer                     123H
  68. UNSAVE:       DB    'R'-40H ^R = Close input text buffer            124H
  69. TRANCHR:      DB    'T'-40H ^T = Transmit file to remote            125H
  70. SAVECHR:      DB    'Y'-40H ^Y = Open input text buffer             126H
  71. EXTCHR:       DB    '^'-40H ^^ = Send next character                127H
  72.  
  73.  
  74. SYSVER:       CALL    JMP$ILPRT         N:      EQU     03H     ;even parit      1A7H
  75.               DB    'M7KP-2, Version for Kaypro II',0               1AAH
  76.               RET
  77.  
  78.  
  79. You can put in a message at this location which can be called up with
  80. CTL-L if TRANLOGON has been set YES.  You can put in several lines if
  81. desired.  End with a 0.
  82.  
  83. LOGON:       DB  'LOGON',CR,LF,0                                    1C9H
  84.  
  85.     NOTE:  You can change the SYSVER message and LOGON message to be
  86. longer or shorter.  The end of your last routine should terminate by
  87. 0380h when using the Hayes Smartmodem.  When assembled, this overlay
  88. is 37Eh bytes long, this leaves 2 bytes (dec) to play with.
  89.  
  90.     You may also want to change the file transfer size at location
  91. 0DEFFh IN MDM722 or 0CFFh in MDM720.
  92.  
  93. (SAVSIZ)   20 = 4k file transfer buffer size
  94.            40 = 8k file transfer buffer size
  95.            80 = 16k file transfer buffer size
  96.  
  97. =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =
  98.  
  99.     Some time sharing systems send extra characters for timing.  Most of
  100. the time the null (hex 00) character is chosen but some systems use a
  101. <DEL> (hex 7F) character.  The following routine in MDM724.COM bypasses
  102. null characters.
  103.  
  104. TERML:  CALL    RCVREADY        ;character on the receive-ready line?
  105.         JNZ     TERM            ;if not, exit
  106.         CALL    IN$MODDATP      ;get the character
  107.         ANI     7FH             ;strip parity
  108.         JZ      TERM            ;don't bother with nulls
  109.         MOV     B,A             ;store temporarily
  110.         LDA     IGNORCTL ;*     ;ignoring all but necessary ctl-chars?
  111.         ORA     A        ;*
  112.         JZ      GIVLF    ;*     ;if zero, display them all
  113.         MOV     A,B
  114.         CPI     ' '
  115.         JNC     GIVLF           ;display all printing characters
  116.         CPI     'G'-40H         ;^g for bell
  117.         JC      TERM            ;ignore ctl-characters less than ^g
  118.         CPI     CR+1
  119.         JNC     TERM            ;ignore ctl-charsacters more than ^m
  120. ;
  121. GIVLF:  EQU     $
  122.  
  123.     If you choose to ignore all but necessary control characters the
  124. following patch will also bypass <DEL> characters:
  125.  
  126.  
  127. B0>ddt mdm724.com
  128. DDT VERS 2.2
  129. NEXT  PC
  130. 4900 0100
  131. -a1ee1
  132. 1EE1  cpi 7f
  133. 1EE3  jz 1fee
  134. 1EE6  nop
  135. 1EE7  nop
  136. 1EE8  <cr>
  137. -G0
  138.  
  139. B0>save 72 mdm724.com
  140.  
  141. =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =
  142. The attached code is in the routine to send a LOGON
  143. message.  If the system is working with half-duplex,
  144. could this routine slow down the transmission of the
  145. LOGON message?  Seems to go to try to get the ECHO
  146. character from the host.
  147.  
  148. LOGLP1: MVI     B,1
  149.         CALL    RECV    change to nop
  150.         RC              change to nop
  151.         ANI     7FH     change to nop
  152.         JMP     TYPE
  153.  
  154. Think this routine is used also in the new function
  155. key support for MDM724.
  156.  
  157.  
  158. The following patch may clear this problem
  159. for MDM724.
  160.  
  161. B>ddt mdm724.com
  162. DDT VERS 2.2
  163. NEXT  PC
  164. 4900 0100
  165. -A1E40
  166. 1E40  nop
  167. 1E41  nop
  168. 1E42  nop
  169. 1E43  nop
  170. 1E44  nop
  171. 1E45  nop
  172. 1E46  <cr>
  173. -g0
  174. B>save 72 mdm724.com
  175.