home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / modems / modem / cp405src.ark / CP4DM2.BWR < prev    next >
Encoding:
Text File  |  1986-12-26  |  4.1 KB  |  115 lines

  1.  6-Feb-85 15:57:11-EST,4177;000000000000
  2. Date: Wed 6 Feb 85 15:57:10-EST
  3. From: Frank da Cruz <SY.FDC@CU20B.ARPA>
  4. Subject: [Walt Lamia <LAMIA@DEC-MARLBORO.ARPA>: Re: DECmate Kermit question]
  5. To: OC.Charles@CU20B.ARPA, PRDLB@CUVMD, CU.RWJ@CU20B.ARPA
  6.  
  7. Here's the answer to the pernicious DECmate vs "IBM-Mode" problem.  The
  8. analysis he's referring to below is that the DECmate's I/O processor swallows
  9. CMS's XON line turnaround handshake character before DECmate Kermit gets a
  10. chance to see it.  I trust the fix he provides will be in the next release.
  11. Aren't networks wonderful?  - Frank
  12.  
  13.                 ---------------
  14.  
  15. Date: Wed 6 Feb 85 14:33:39-EST
  16. From: Walt Lamia <LAMIA@DEC-MARLBORO.ARPA>
  17. Subject: Re: DECmate Kermit question
  18. To: SY.FDC@CU20B
  19. Cc: Charles@ACC.ARPA, Eiben@DEC-MARLBORO.ARPA, LAMIA@DEC-MARLBORO.ARPA
  20. In-Reply-To: Message from "Frank da Cruz <SY.FDC%CU20B@COLUMBIA.ARPA>" of Tue 5 Feb 85 19:08:26-EST
  21.  
  22. Yup, your analysis is essentially correct.  The 6180 (PDP-8 chip)
  23. processor does all of the I/O for the Z80 in the DECmateII, including
  24. the comm. line.  This is basically good, since it's a 12 MHz, good
  25. I/O processor, so you (almost) never loose any characters on the comm.
  26. port.
  27.  
  28. However, the default condition is for the 6120 to completely handle
  29. xon/xoff protocol, and never pass them on to the Z80.  It's easy
  30. to turn this off, however, by sending a message to the 6120
  31. "operating system" with the extended bios's.
  32.  
  33. Now that I've explained all this, I'll give you the code that does
  34. it.  It is an extract from the standard MDM730 overlay for DECmates,
  35. in the initialization routine.  You should endeavour to have this
  36. code executed during Kermit initialization.  NOTE -- this method is
  37. "sticky", in that once the XON/XOFF handling by the 6120 is
  38. disabled, it stays that way until another >cold boot<, unless you
  39. run another program to turn it back on.  The good news is that I have
  40. never found it necessary to turn it on, i.e. everything seems to work
  41. ok either before or after running it.  So I just don't worry about it.
  42.  
  43. Good luck, and thanks for Kermit!
  44.  
  45. %Walt
  46.  
  47. ;=====================================================================
  48. ; M7VT-4.ASM -- DEC Micro Overlay File for MDM7xx / MEX.  29-Aug-84
  49. ;
  50. ;
  51. ;This  Overlay  File  supports  the DEC Micros VT180, Rainbow and
  52. ;DECmate II with CP/M.
  53. ;
  54. ;We  use the COMM-Port of the Micro's.  Baud-rates are "parallel"
  55. ;to the console Baud-rates - no need for  a  "special"  baud-rate
  56. ;routine.   Since  the COMM-port is I/O-wise Reader/Punch, we use
  57. ;the BDOS calls.
  58. ;
  59. ;To  test  for  COMM-status  ,  we  use  I/O  byte redirection in
  60. ;conjunction with direct BIOS-CONSTAT call.
  61. ;
  62. ;This  technique  although  a  little  bit slower than direct I/O
  63. ;using  Interrupt  on  INPUT  is  general  enough  to  be  system
  64. ;independent.   Set  one  of  the  following  switches  to TRUE:
  65. ;
  66. ;RAINBO1 for (old) Version 1 CP/M 80/86
  67. ;RAINBO2 for (current) Version 2 of CP/M 80/86
  68. ;DECMATE for DECmate II with CP/M option
  69. ;ROBIN     for the VT180 (aka ROBIN)
  70. ;
  71. ;    - B. Eiben DEC Large System Marketing Marlboro Mass
  72. ;
  73. ;***********************************************************************
  74. ;................
  75. ;
  76. IF DECMATE
  77. DEFIO    EQU    81H        ; the "standard" setting
  78. BATIO    EQU    42H        ;
  79. ENDIF                ; DECMATE
  80. ;
  81. ;.....
  82. ;
  83. ;
  84. ; You can use this area for any special initialization or setup you may
  85. ; wish to include.  Each must stop with a RET.    You can check the other
  86. ; available overlays for ideas how to write your own routines if that
  87. ; may be of some help.
  88. ;
  89. INITMOD:  LHLD    1        ; Get BIOS Jump-table adress
  90.       LXI    D,3
  91.       DAD    D        ; CONSTAT routine in BIOS
  92.       SHLD    BCONST+1    ; modify our "routine"
  93.  
  94. IF DECMATE
  95.  
  96. nocixon    equ    016h        ; turn off comm. input XON/XOFF
  97. cixon    equ    015h        ; enable comm. inp XON
  98. nocoxon    equ    001h        ; turn off comm. output XON
  99. coxon    equ    000h        ; enable comm. output XON
  100.  
  101.     lxi    b,(nocoxon * 100h) + prtctl ; c/prtctl, b/no out. xon
  102.     call    outbyt1
  103.     ret            ; and return
  104.  
  105. outbyt1: lhld    1        ; get warm boot address
  106.     lxi    d,oboff        ; offset of outbyt routine
  107.     dad    d        ; compute address
  108.     pchl            ; branch there (a callret)
  109.  
  110. ENDIF;DECMATE
  111.  
  112.       RET
  113. -------
  114. -------
  115.