Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : CDECT.BAS
'Purpose : Detects carrier.
'Input : 1 - 4 for Com ports ... assumes changed irqs if > 2
'Return : -1 if carrier detected, 0 if not CD, 2 if out of range
pcrCarrierDetect% = 0
IF Com% = 1 THEN Addr = &H3FE
IF Com% = 2 THEN Addr = &H2FE
IF Com% = 3 THEN Addr = &H3EE
IF Com% = 4 THEN Addr = &H2EE
IF Addr = 0 THEN pcrCarrierDetect% = 2: EXIT FUNCTION
IF (INP(Addr) AND 128) THEN pcrCarrierDetect% = -1
END FUNCTION
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/