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 / SIMTEL / CPMUG / CPMUG084.ARK / MODEM76.SET < prev    next >
Text File  |  1984-04-29  |  5KB  |  152 lines

  1.  
  2.         SET UP ROUTINE FOR THE CP/M MODEM PROGRAM
  3.             Version 7.6   04/12/82
  4.             modified   by     BRR
  5.             from vers 7.5 by  RLP
  6.  
  7. This information is given for those who do not wish to re-assemble
  8. the modem program for their system because they do not have MAC, do
  9. not have the source code, or are lazy. If you have a PMMI Modem board,
  10. with base port set at 0C0H, and do not want backup (.BAK) copies (if the
  11. file being received already exists), the program will run as is. Else,
  12. make the patches listed below.
  13.  
  14. Use the L command ( L100 ) of DDT or SID to list the program and
  15. use the S command to make the following changes:
  16.  
  17. 0100 C3 3F04    JMP 043FH  <---  Do not change
  18.  
  19. (Note: The L command of DDT or SID displays 0FFH as "RST 07" and 0 as "NOP")
  20.  
  21. 0103 FF               <--- 0FFH if PMMI modem, else zero.
  22.                 SuperBrain users should put zero here.
  23.  
  24. 0104 00               <--- 0FFH if Imsai with front panel,
  25.                 else zero.
  26.                 SuperBrain users should put zero here.
  27.  
  28. 0105 FF               <--- 0FFH if 4 MHz Z-80 (or maybe fast 8085)
  29.                 else 0.
  30.                 SuperBrain users should use 0FFH
  31.  
  32. 0106 00               <--- Zero if you want files that exist
  33.                 to be deleted if a file of the same
  34.                 name is sent in multifile transfer.
  35.                 0FFH if you want the existing file
  36.                 to be changed to type "BAK".
  37.  
  38.                 Note: In CP/M 2 existing R/O or
  39.                       SYS files    are changed to
  40.                       type BAK whether this byte
  41.                       is set or not.
  42.  
  43. 0107 FF               <--- 0FFH if you want program to come
  44.                 up in expert (XPR) mode without
  45.                 calling A>MODEM X else zero if
  46.                 you want menu or X command. You
  47.                 will probably want to leave this
  48.                 at 0FFH since new users can toggle
  49.                 this on with the XPR command.
  50.  
  51. 0108 FA               <--- 0FAH for 20 pulses/sec dialing
  52.         PMMI        (PMMI modem only). 7DH if your
  53.         ONLY        phone exchange is older and needs
  54.                 a slower dialing rate.
  55.  
  56. 0109 FF               <--- 0FFH if you want to be sure not
  57.                 to overwrite the CCP when in file
  58.                 transfer or file capture mode.
  59.                 Upon return to CP/M, the program
  60.                 will properly return to the CCP.
  61.                 00H if CCP space is allowed to be
  62.                 used for buffer.  In this case the
  63.                 RAM space up to the BDOS will be
  64.                 used and return to CP/M will be via
  65.                 a warm boot.
  66.  
  67. 010A DB XX    IN  XX     <--- Put modem status port in 010BH
  68.                 (Base port if PMMI).
  69.                 SuperBrain users should put 59H
  70.                 here for main status.
  71. 010C C9        RET
  72.  
  73. If you do not have a PMMI modem, make the following patches also:
  74.  
  75. 010D D3 XX    OUT XX       <--- Put modem data port in 010EH.
  76.                 SuperBrain users should put 58H
  77.                 here for main data.
  78. 010F C9        RET    
  79.  
  80. 0110 E6 XX    ANI XX       <--- Put bit tested when modem ready to
  81.                 send in 0111H.
  82.                 SuperBrain users need make no change.
  83. 0112 C9        RET        
  84.  
  85. 0113 FE XX    CPI XX       <--- Same as 0111H if port uses positive logic (JZ).
  86.                 Hex zero if port uses negative logic (JNZ).
  87.                 SuperBrain users need make no change.
  88. 0115 C9        RET
  89.  
  90. 0116 DB XX    IN XX       <--- Put modem data port (again) in 0117H.
  91.                 SuperBrain users should put 58H
  92.                 here for main data.
  93. 0118 C9        RET
  94.  
  95. 0119 E6 XX    ANI XX       <--- Put bit tested when modem ready to receive
  96.                 in 011AH.
  97.                 SuperBrain users need make no change.
  98. 011B C9        RET
  99.  
  100. 011C FE XX    CPI XX       <--- Same as 011AH if port uses positive logic.
  101.                 Hex zero if port uses negative logic.
  102.                 SuperBrain users need make no change.
  103. 011E C9        RET
  104.  
  105. 011F C3 XXXX    JMP XXXX   <--- 011FH contains a jump to a modem or port
  106.                 initialization routine. If your modem does
  107.                 not need to be initialized, put a RET (C9H)
  108.                 in 011FH .If you need initialization, write
  109.                 your routine for the memory location addressed
  110.                 by the jump. The initialization routine
  111.                 must end with a RET instruction. You have
  112.                 approximately 190 (decimal) bytes for the
  113.                 routine. 
  114.                 SuperBrain users would probably want to put
  115.                 a RET in 011FH if they have properly set the
  116.                 number of data and stop bits and the parity
  117.                 with CONFIGUR or ACTIVATE.
  118.  
  119. The following are useful changes to make to run on MIT's ITS machines; they
  120. allow more efficient operation with EMACS, etc.
  121.  
  122. 057D FE 05    CPI 05       <--- Change the 05H (control-E or move cursor to
  123.                 end of line in EMACS) to a less likely EMACS
  124.                 hit. I use 1CH (control-\). You now type
  125.                 control-\ to return to the MODEM75 command
  126.                 level. Note that you can still send 1CH by
  127.                 typing control-^ followed by control-\. 
  128.  
  129. 0582 FE 04    CPI 04       <--- If you do not have a PMMI modem I advise
  130.                 changing the 04H (control-D or delete char-
  131.                 acter in EMACS) to 08H (control-H or CP/M 2.2
  132.                 backspace-delete-backspace). Then insert the
  133.                 code on the following lines to convert this
  134.                 to a RUB (7FH). This prevents mistaken use of
  135.                 this control character when RUB is intended.
  136.  
  137. 0584 CA DA 20    JZ 20DA    <--- Assuming you don't have a PMMI change this
  138.                 to CC 30 04 (CZ 0430). This is a call to the
  139.                 region where the PMMI phone numbers are
  140.                 stored and is therefore free if you don't
  141.                 have a PMMI.
  142.  
  143. 0430 20 20    '  '       <--- Insert 3E 7F (MVI A,7F)
  144.  
  145. 0432 20        ' '       <--- Insert C9 (RET)
  146.     
  147. You are finished. Leave DDT (using ^C) and type
  148.  
  149.         SAVE 38 MODEM.COM
  150.  
  151. END of FILE.
  152.