COM4 AND COM3

 BBS: Inland Empire Archive
Date: 02-11-93 (09:21)             Number: 385
From: MICHAEL LOWE                 Refer#: NONE
  To: DIK COATES                    Recvd: NO  
Subj: COM4 AND COM3                  Conf: (2) Quik_Bas
I've been supporting Com ports 3 and 4 for some time now,
using the methods described in this thread, with very few
problems.

All you have to know is what IRQ is required (3 or 4) and
what base address (anything) to point to.

If you need IRQ 4, simply put the address into the COM1 pointer
for IRQ 3 use the COM2 pointer.

in decimal:
Seg  Offset
0000:1024 low byte com1
     1025 high byte com1
     1026 low byte com2
     1027 high byte com2

A few caveats...


It seems that after opening the port, QB zeroes out the
pointer.  If you need to use the address, don't count on
it's pointer being there while the port is open.

Recently, I've experienced problems with my terminal
program locking up after closing the port (If on com3 or 4)
IF and only if Telix v3.20 has been used during the current
boot.
I haven't a cluse as to why this is, but I believe it's
because of IRQ masks not being reset.. ..longshot..

                        Mike Lowe


--- TMail v1.31.3
 * Origin: * 20/20 TBBS * 312-769-2020 @2400 * 275-1785 @9600 (1:115/769)
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