Comm Port 3...

 BBS: Inland Empire Archive
Date: 04-11-92 (22:40)             Number: 192
From: WILLIAM EDMONDS              Refer#: NONE
  To: JON SPRINGER                  Recvd: NO  
Subj: Comm Port 3...                 Conf: (2) Quik_Bas
JS>   Argh!  Does anybody know how to access Comm port 3 for use with
JS> the modem from Quickbasic?  I get some dumb error telling me
JS> such a comm port doesn't exist(if I remembers right).  I could
JS> switch all my hardware around and put my modem on comm 1 but that
JS> would be a real pisser.

Jon: I have seen the answer a number of times here during the first
quarter of this year. QuickBASIC uses the equipment list starting at
40:0 so all you have to do to use *any* serial card or modem at
practically *any* address (legal that is) is to simply poke the address
you want the OPEN "COM:" statement to use such as:

'To use a GTEK PCSS-8U 8 channel serial card at 2C0H for instance
DEF SEG = &H40
POKE 0,&HC0
POKE 1, 2        'for COM1: and 2C0H
POKE 2,&HC8
POKE 3, 2        'for COM2: and 2C8H
OPEN "COM1:9600,N,8,1,CS0,DS0,CD0" AS #1 ' for instance
' opens COM1: at 2C0h.

Keep in mind that your card probably uses IRQ3 for COM2 and COM4 and
IRQ4 for COM1 and COM2, not that it makes much difference if
you just use OPEN COM. A COM3 modem card uses 3E8h and a COM4 card uses
2E8h.

CAL

---
 * Origin: The Land of the Lost   Lakeshore Ms (601)467-0801 (1:3604/15)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET