home *** CD-ROM | disk | FTP | other *** search
- '─ Area: F-QUICKBASIC ─────────────────────────────────────────────────────────
- ' Msg#: 395 Date: 12 Apr 94 16:08:00
- ' From: Blair Colbey Read: Yes Replied: No
- ' To: Tristan Miller Mark:
- ' Subj: Carrier Detect
- '──────────────────────────────────────────────────────────────────────────────
- 'If you don't have much space here is some code for you it will send
- 'information to the modem via(through) the fossil drive (x00 or bnu) it
- 'can use any com port. note: you have to have the qb.bi file loaded and
- 'have quickbasic loaded qb /lqb
-
- '$INCLUDE: 'qb.bi' edit path to suit
- CLS
- x = 1
- DO WHILE x <= 4
- IF x = 1 THEN g$ = "a"
- IF x = 2 THEN g$ = "t"
- IF x = 3 THEN g$ = "a"
- IF x = 4 THEN g$ = CHR$(13)
- ah = &H1
- al = ASC(g$)
- DIM a AS RegType
- DIM b AS RegType
- a.ax = ah * &H100
- a.ax = a.ax + al
- a.dx = &H0 'port number as set in x00 with xu.exe
- CALL INTERRUPT(&H14, a, b)
- PRINT a.ax
- PRINT a.dx
- PRINT b.ax
- PRINT b.dx
- x = x + 1
- LOOP
-