home *** CD-ROM | disk | FTP | other *** search
- ' This is a example of how to test yourself with a bios call
- ' if Carrier Detect is present in your basic programs. (quickly!)
- ' This compiles under the MicroSoft's Professional Basic Compiler v7.x (DOS)
- ' ------------------------------------------------ By: R. Pierce ----------
- ' $INCLUDE: 'QBX.BI'
- DIM regs AS RegType
- regs.dx = &H0' 0=com port 1 or 1=com port 2
- regs.ax = &H3
- CALL Interrupt(&H14, regs, regs)
- code% = regs.ax AND &H80
- ' <code%=128 if CD is present, zero otherwise>
- IF code% = 0 THEN PRINT "No Carrier" ELSE PRINT "Carrier Detected"
- END
- '
- 'A little ditty from: The BoardWalk BBS (you must load the qbx.qlb Lib
- ' Pittsburgh, Pa. when you start the QBX system
- ' (412) 928-8577 like this: QBX /L QBX.QLB)
-
-