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 / BYE5 / OZBYE510.DOC < prev    next >
Text File  |  2000-06-30  |  5KB  |  128 lines

  1.          Osborne 01 / BYE510 / Smart Modem
  2.  
  3.      The   insert  for  the   Osborne,   B5OS-2.INS, 
  4. describes  a hardware modification to  the  computer 
  5. which I was able to avoid.  Since I am using a smart 
  6. modem  it is possible to let it control BYE as  well 
  7. as  the  phone connection.  Pin four of  the  serial 
  8. connector  of  the Osborne is checked by BYE.COM  to 
  9. determine if the modem is on line.  When this pin is 
  10. at plus 5 volts or greater, the on-line condition is 
  11. indicated. (my modem pulls pin four to plus 12 volts 
  12. when  it  answers) When the caller hangs up  or  the 
  13. line  is  lost,  the  modem grounds  pin  four.  BYE 
  14. detects the ground at pin four and recycles,  making 
  15. itself ready for the next call.  If your modem has a 
  16. suitable  signal which you can connect to  pin  four 
  17. you  are in business.  It looks like DATA SET READY, 
  18. pin six on the modem,  might work.  I had previously 
  19. modified my modem to bring the off-hook led  voltage 
  20. to  the connector.  This provided the needed  signal 
  21. and   I  was  able  to  get  BYE  running  with   no 
  22. modification to my Osborne.
  23.  
  24.      When  a disconnect is caused by a  time-out, or 
  25. when  the  caller  types  the  command  BYE,  it  is 
  26. necessary  to run a program which commands the modem 
  27. to disconnect.  When the modem disconnects, pin four 
  28. will go to ground and BYE will recycle. BYE provides 
  29. the option of running a program upon exit by setting 
  30. the EXFILE equate to YES. My exit program sends a ^T 
  31. to the modem,  delays one second to allow the  modem 
  32. time  to abort,  and returns to BYE.  The program is 
  33. named  PEXIT.COM and is on the same disk as  BYE.COM 
  34. in  user area 14.  These options are selected by the 
  35. equates EXFILE,  EXDRV,  and EXUSR.  In addition the 
  36. following two equates must be set to NO:  PRNTGB    
  37.                                           BYHANG    
  38.  
  39.      Using  a program to abort the modem solves  two 
  40. other problems.  I keep BYE.COM on drive A.  What if 
  41. the  caller decides to terminate the call and  types 
  42. BYE  when logged on drive B?  I have a copy  of  the 
  43. exit  program on drive B which I have named BYE.COM. 
  44. If the caller types BYE while on drive B,  the  exit 
  45. program  will send the abort character to the  modem 
  46. and  BYE  will recycle just as  before.  The  second 
  47. problem  involved  getting  BYE to  recycle  if  the 
  48. caller was unable to enter the correct password. BYE 
  49. has  an option for a user password but I decided not 
  50. to  use  it.  I  wanted more options so  I  wrote  a 
  51. password  program that is run when the phone line is 
  52. first  picked up.(See equates  COMFILE,  COMDRV  and 
  53. COMUSR) If the caller is unable to give the password 
  54. the program sends a ^T to the modem. If the password 
  55. is  correct the program sets the wheel byte  to  the 
  56. value assigned that password. 
  57.  
  58.      After inserting B5OS-2.INS into BYE510C.ASM, be 
  59. sure  to  check all the equates to insure that  they 
  60. are  set correctly for your  system.  After  setting 
  61. EXFILE  to yes you will also have to select the user 
  62. area  and a file name.  The file name will  have  to 
  63. match the exit-file  file name of the BBS equate you 
  64. set to YES. File names appear in file control blocks 
  65. toward the end of the BYE asm file. I am not using a 
  66. BBS  program but I had to set the equate for one  of 
  67. them to YES to avoid assembler errors.  My exit file 
  68. name  and my entrance file name match the names used 
  69. by that BBS system.
  70.  
  71.  
  72. ;PEXIT.ASM for use with BYE510
  73. ;for OSBORNE 01  bios 1.4
  74. ;Causes modem to abort by sending a ^T via the serial port
  75. TURNOFF EQU     14H ;^T to abort modem - put your abort char here 
  76. SHADOW  EQU     4000H   ;must be above 4000h
  77. MEMREG  EQU     0EF08H 
  78. CONT    EQU     2A00H   ;serial status/control
  79. CNT1    EQU     0FFH    ;for delay loop
  80. CNT2    EQU     0FFFFH  ;for delay loop
  81. CNT3    EQU     04H     ;for delay loop
  82.         ORG     100H
  83.         LXI     D,BYBY
  84.         MVI     C,9
  85.         CALL    5
  86.         JMP     DOBLK
  87. BYBY:   DB      0DH,0AH,'GOOD BYE.....',0DH,0AH,24H
  88. DOBLK:  LXI     H,BLKSTART
  89.         LXI     D,SHADOW
  90.         LXI     B,BLKEND-BLKSTART
  91.         DB      0EDH,0B0H
  92.         JMP     SHADOW
  93. BLKSTART:       EQU     $       ;ends up at 4000h
  94.         DI
  95.         OUT     0       
  96.         MVI     A,0     
  97.         STA     MEMREG
  98.         MVI     A,TURNOFF
  99.         STA     CONT+1
  100.         OUT     1
  101.         MVI     A,1
  102.         STA     MEMREG
  103.         EI
  104.         MVI     D,CNT3
  105. LONG:   MVI     E,CNT1  ;one second delay to allow
  106. SHORT:  LXI     B,CNT2  ;modem time to abort
  107. LP1:    MOV     A,C
  108.         DCR     A
  109.         MOV     C,A
  110.         JNZ     LP1
  111. LP2:    MOV     A,B
  112.         DCR     A
  113.         MOV     B,A
  114.         JNZ     LP2
  115.         MOV     A,E
  116.         DCR     A
  117.         MOV     E,A
  118.         JNZ     SHORT
  119.         MOV     A,D
  120.         DCR     A
  121.         MOV     D,A
  122.         JNZ     LONG
  123.         RET
  124. BLKEND  EQU     $
  125.         END
  126. ;
  127.                        <eof>
  128.