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 / AUXDV012.ASM < prev    next >
Assembly Source File  |  2000-06-30  |  9KB  |  260 lines

  1. ;
  2. ; MDM711,MDM712 driver for Adds Multivision
  3. ;
  4. ;
  5. ; These files (AUXDVnnn.ASM) are extensions to the overlay set that
  6. ; is provided with MODEM711 and MODEM712 and should work with both
  7. ; programs.  All of these drivers have not been tested. If you have
  8. ; any problems or updates,  leave a message to me on the Dallas
  9. ; Metroplex RCPM (214) 739-1935 (evenings and weekends)
  10. ;
  11. ;
  12. ;                                       Steve Holtzclaw
  13. ;
  14. ;
  15. ; You will want to look this file over carefully. There are a number of
  16. ; options that you can use to configure the program to suit your taste.
  17. ; This file places particular emphasis on using an external modem that
  18. ; does not match one of the other special overlays.  You would use the
  19. ; normal CP/M "Configure" program to set the modem to whatever baud rate
  20. ; you would normally use (such as 300 or 1200, etc.)  Then perhaps just
  21. ; make a second .COM file if you need both 300 and 1200 and do not wish
  22. ; to write your own initialization or "set baud" routine.
  23. ;
  24. ; You could look at other overlay files to see how the GOODBYE and/or
  25. ; SETUPR areas are handled.  You could then adapt one of those, if ap-
  26. ; propriate for your equipment in this overlay.  Some examples:
  27. ;
  28. ;     "DP"  Datapoint 1560 overlay using 8251 I/O and CTC timers for
  29. ;              setting baud rates
  30. ;     "H8"  Heath H89 overlay for 8250 I/O and programmable baud rates
  31. ;     "HZ"  Zenith 120 overlay for 2661B initialization and baud rates
  32. ;     "XE"  Xerox 820II overlay for Z80-SIO intialization, etc.
  33. ;
  34. ; Edit this file for your preferences then follow the "TO USE:" example
  35. ; shown below.
  36. ;
  37. ;    TO USE: First edit this file filling in answers for your own
  38. ;        equipment.  Then assemble with ASM.COM or equivalent
  39. ;        assembler.  Then use DDT to overlay the the results
  40. ;        of this program to the original .COM file:
  41. ;
  42. ;        A>DDT MDM711.COM (or MDM712.COM)
  43. ;        DDT VERS 2.2
  44. ;        NEXT  PC
  45. ;        4300 0100
  46. ;        -IAUXDVnnn.HEX        (note the "I" command)
  47. ;        -R            ("R" loads in the .HEX file)
  48. ;        NEXT  PC
  49. ;        4300 0000
  50. ;        -G0            (return to CP/M)
  51. ;        A>SAVE 66 MDM711.COM    (now have a modified .COM file)
  52. ;
  53. ; =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =
  54. ;
  55. ; 08/04/83 - Aux drivers created                - Steve Holtzclaw
  56. ; 07/01/83 - Revised to work with MDM711    - Irv Hoff
  57. ; 07/01/83 - Revised to work with MDM710    - Irv Hoff
  58. ; 05/27/83 - Updated to work with MDM709    - Irv Hoff
  59. ; 05/15/83 - Revised to work with MDM708    - Irv Hoff
  60. ; 04/11/83 - Updated to work with MDM707    - Irv Hoff
  61. ; 04/04/83 - First version of this file        - Irv Hoff
  62. ;
  63. ; =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =   =
  64. ;
  65. BELL:        EQU    07H        ;bell
  66. CR:        EQU    0DH        ;carriage return
  67. ESC:        EQU    1BH        ;escape
  68. LF:        EQU    0AH        ;linefeed
  69. ;
  70. YES:        EQU    0FFH
  71. NO:        EQU    0
  72. ;
  73. MODCTL1:    EQU    08dh        ;MODEM CONTROL PORT
  74. MODDATP:    EQU    08ch        ;MODEM DATA IN PORT
  75. MODDATO:    EQU    08ch        ;MODEM DATA OUT PORT
  76. MODDCDB:    EQU    0        ;CARRIER DETECT BIT
  77. MODDCDA:    EQU    0        ;VALUE WHEN ACTIVE
  78. BAUDRP:     EQU    0        ;BAUD RATE PORT
  79. MODCTL2:    EQU    08dh        ;2ND MODEM CONTROL PORT
  80. MODRCVB:    EQU    02h        ;BIT TO TEST FOR RECEIVE
  81. MODRCVR:    EQU    02h        ;VALUE WHEN READY
  82. MODSNDB:    EQU    01h        ;BIT TO TEST FOR SEND
  83. MODSNDR:    EQU    01h        ;VALUE WHEN READY
  84. ;
  85.         ORG    100H
  86. ;
  87. ;
  88. ; Change the clock speed to suit your system
  89. ;
  90.         DS    3    ;(for  "JMP   START" instruction)
  91. ;
  92. PMMIMODEM:    DB    NO    ;yes=PMMI S-100 Modem            103H
  93. SMARTMODEM:    DB    NO    ;yes=HAYES Smartmodem, no=non-PMMI    104H
  94. TOUCHPULSE:    DB    'T'    ;T=touch, P=pulse (Smartmodem-only)    105H
  95. CLOCK:        DB    40    ;clock speed in MHz x10, 25.5 MHz max.    106H
  96.                 ;20=2 MHh, 37=3.68 MHz, 40=4 MHz, etc.
  97. MSPEED:        DB    1    ;0=110 1=300 2=450 3=600 4=710 5=1200   107H
  98.                 ;6=2400 7=4800 8=9600 9=19200 default
  99. BYTDLY:        DB    5    ;0=0 delay  1=10ms  5=50 ms - 9=90 ms   108H
  100.                 ;default time to send character in ter-
  101.                 ;minal mode file transfer for slow BBS.
  102. CRDLY:        DB    5    ;0=0 delay 1=100 ms 5=500 ms - 9=900 ms 109H
  103.                 ;default time for extra wait after CRLF
  104.                 ;in terminal mode file transfer
  105. NOOFCOL:    DB    5    ;number of DIR columns shown        10AH
  106. SETUPTST:    DB    NO    ;yes=user-added Setup routine        10BH
  107. SCRNTEST:    DB    NO    ;Cursor control routine         10CH
  108. ACKNAK:        DB    YES    ;yes=resend a record after any non-ACK    10DH
  109.                 ;no=resend a record after a valid-NAK
  110. BAKUPBYTE:    DB    NO    ;yes=change any file same name to .BAK    10EH
  111. CRCDFLT:    DB    YES    ;yes=default to CRC checking        10FH
  112. TOGGLECRC:    DB    YES    ;yes=allow toggling of CRC to Checksum    110H
  113. CONVBKSP:    DB    NO    ;yes=convert backspace to rub        111H
  114. TOGGLEBK:    DB    YES    ;yes=allow toggling of bksp to rub    112H
  115. ADDLF:        DB    NO    ;no=no LF after CR to send file in    113H
  116.                 ;terminal mode (added by remote echo)
  117. TOGGLELF:    DB    YES    ;yes=allow toggling of LF after CR    114H
  118. TRANLOGON:    DB    YES    ;yes=allow transmission of logon    115H
  119.                 ;write logon sequence at location LOGON
  120. SAVCCP:        DB    YES    ;yes=do not overwrite CCP        116H
  121. LOCONEXTCHR:    DB    NO    ;yes=local command if EXTCHR precedes    117H
  122.                 ;no=external command if EXTCHR precedes
  123. TOGGLELOC:    DB    YES    ;yes=allow toggling of LOCONEXTCHR    118H
  124. LSTTST:        DB    YES    ;yes=printer available on printer port    119H
  125. XOFFTST:    DB    NO    ;yes=checks for XOFF from remote while    11AH
  126.                 ;sending a file in terminal mode
  127. XONWAIT:    DB    NO    ;yes=wait for XON after CR while    11BH
  128.                 ;sending a file in terminal mode
  129. TOGXOFF:    DB    YES    ;yes=allow toggling of XOFF checking    11CH
  130. IGNORCTL:    DB    YES    ;yes=CTL-chars above ^M not displayed    11DH
  131. EXTRA1:        DB    0    ;for future expansion            11EH
  132. EXTRA2:        DB    0    ;for future expansion            11FH
  133. BRKCHR:        DB    '@'-40H    ;^@ = Send 300 ms. break tone        120H
  134. NOCONNCT:    DB    'N'-40H    ;^N = Disconnect from the phone line    121H
  135. LOGCHR:        DB    'O'-40H    ;^O = Send logon            122H
  136. LSTCHR:        DB    'P'-40H    ;^P = Toggle printer            123H
  137. UNSAVE:        DB    'R'-40H    ;^R = Close input text buffer        124H
  138. TRANCHR:    DB    'T'-40H ;^T = Transmit file to remote        125H
  139. SAVECHR:    DB    'Y'-40H    ;^Y = Open input text buffer        126H
  140. EXTCHR:        DB    '^'-40H    ;^^ = Send next character        127H
  141. ;
  142. ;
  143.         DS    2        ;                128H
  144. ;
  145. IN$MODCTL1:    IN    MODCTL1 ! RET    ;in modem control port             12AH
  146.         DS    7
  147. OUT$MODDATP:    OUT    MODDATP ! RET    ;out modem data port        134H
  148.         DS    7
  149. IN$MODDATP:    IN    MODDATP ! RET    ;in modem data port        13EH
  150.         DS    7
  151. ANI$MODRCVB:    ANI    MODRCVB    ! RET    ;bit to test for receive ready    148H
  152.  
  153. CPI$MODRCVR:    CPI    MODRCVR    ! RET    ;value of rcv. bit when ready    14BH
  154. ANI$MODSNDB:    ANI    MODSNDB    ! RET    ;bit to test for send ready    14EH
  155. CPI$MODSNDR:    CPI    MODSNDR    ! RET    ;value of send bit when ready    151H
  156.         DS    6        ;                156H
  157. ;
  158. OUT$MODCTL1:    OUT    MODCTL1    ! RET    ;out modem control port #2    15AH
  159. OUT$MODCTL2:    OUT    MODCTL2    ! RET    ;out modem control port #1    15DH
  160. ;
  161. LOGONPTR:    DW    LOGON        ;for user message.        160H
  162.         DS    6        ;                162H
  163. JMP$GOODBYE:    JMP    GOODBYE        ;                168H
  164. JMP$INITMOD:    JMP    INITMOD        ;go to user written routine    16BH
  165.         RET  !  NOP  !  NOP    ;(by-passes PMMI routine)    16EH
  166.         RET  !  NOP  !  NOP    ;(by-passes PMMI routine)    171H
  167.         RET  !  NOP  !  NOP    ;(by-passes PMMI routine)    174H
  168. JMP$SETUPR:    JMP    SETUPR        ;                177H
  169. JMP$SPCLMENU:    JMP    SPCLMENU    ;                17AH
  170. JMP$SYSVER:    JMP    SYSVER        ;                17DH
  171. JMP$BREAK:    JMP    SENDBRK        ;                180H
  172. ;
  173. ;
  174. ; Do not change the following six lines.
  175. ;
  176. JMP$ILPRT:    DS    3        ;                183H
  177. JMP$INBUF    DS    3        ;                186H
  178. JMP$INLNCOMP:    DS    3        ;                189H
  179. JMP$INMODEM    DS    3        ;                18CH
  180. JMP$NXTSCRN:    DS    3        ;                18FH
  181. JMP$TIMER    DS    3        ;                192H
  182. ;
  183. ; Routine to clear to end of screen.  If using CLREOS and CLRSCRN, set
  184. ; SCRNTEST to YES at 010AH (above).
  185. ;
  186. CLREOS:        CALL    JMP$ILPRT    ;                195H
  187.         DB    0,0,0,0,0    ;                198H
  188.         RET            ;                19DH
  189. ;
  190. CLRSCRN:    CALL    JMP$ILPRT    ;                19EH
  191.         DB    0,0,0,0,0    ;                1A1H
  192.         RET            ;                1A6H
  193.     
  194. ;
  195. SYSVER:        CALL    JMP$ILPRT    ;                1A7H
  196.         DB    'Version for external modem'
  197.         DB    CR,LF,0
  198.         RET
  199. ;.....
  200. ;
  201. ;
  202. ;-----------------------------------------------------------------------
  203. ;
  204. ; NOTE:  You can change the SYSVER message to be longer or shorter.  The
  205. ;     end of your last routine should terminate by 0400H (601 bytes
  206. ;     available after start of SYSVER) if using the Hayes Smartmodem
  207. ;     or by address 0C00H (2659 bytes) otherwise.
  208. ;
  209. ;-----------------------------------------------------------------------
  210. ;
  211. ; You can put in a message at this location which can be called up with
  212. ; CTL-O if TRANLOGON has been set TRUE.  You can use several lines if
  213. ; desired.  End with a 0.
  214. ;
  215. LOGON:        DB    'How are you today?',CR,LF,0
  216. ;.....
  217. ;
  218. ;
  219. ; Add your own routine here to send a break tone to reset some time-share
  220. ; computers, if desired.
  221. ;
  222. SENDBRK:    RET
  223. ;.....
  224. ;
  225. ;
  226. ; Add your own routine here to put DTR low and/or send a break tone.
  227. ; Check other routines such as MDM709DP.ASM which is using this feature.
  228. ;
  229. GOODBYE:    RET
  230. ;.....
  231. ;
  232. ;
  233. ; You can use this area for any special initialization or setup you may
  234. ; wish to include.  Each must stop with a RET.  You can check the other
  235. ; available overlays for ideas how to write your own routines if that
  236. ; may be of some help.
  237. ;
  238. INITMOD:  RET
  239. ;
  240. SETUPR:      RET
  241. ;
  242. ;
  243. ; If using the Hayes Smartmodem this is unavailable without a special
  244. ; change.
  245. ;
  246. SPCLMENU:  RET
  247. ;
  248. ;
  249. ; NOTE:  MUST TERMINATE PRIOR TO 0400H (with Smartmodem)
  250. ;                 0C00H (without Smartmodem)
  251. ;.....
  252. ;
  253.       END
  254. ;
  255.   RET
  256. ;
  257. ;
  258. ; NOTE:  MUST TERMINATE PRIOR TO 0400H (with Smartmodem)
  259. ;                 0C00H (