home *** CD-ROM | disk | FTP | other *** search
- *[FOSSIL11.LIT]***************************************************************
- * Description: Removes support for FOSSIL *
- * RBBS-PC Level: CPC17.3 √ AM *
- * Module Affected: RBBSSUB1.BAS *
- * Selection Option: FOSSIL = OFF *
- * Additional files: FOSSIL12.LIT,FOSSIL13.LIT *
- ******************************************************************************
- 200 ' $SUBTITLE: 'OpenCom - subroutine to open the communications port'
- ' $PAGE
- '
- ' NAME -- OpenCom
- '
- ' INPUTS -- PARAMETER MEANING
- ' BaudRate$ BAUD TO OPEN MODEM
- ' Parity$ PARITY TO OPEN MODEM
- '
- ' OUTPUTS -- BaudTest! BAUD RATE TO SET RS232 AT
- '
- ' PURPOSE -- To open the communications port.
- '
- SUB OpenCom (BaudRate$,Parity$) STATIC
- ON ERROR GOTO 65000
- IF INSTR(Parity$,"N") THEN _
- Parity = 2 : _ ' No PARITY
- DataBits = 3 : _ ' 8 DATA BITS
- StopBits = 0 _ ' 1 STOP BIT
- ELSE Parity = 3 : _ ' EVEN PARITY
- DataBits = 2 : _ ' 7 DATA BITS
- StopBits = 0 ' 1 STOP BIT
- 1420 Strng$ = INPUT$(1,3)
-