BBS: Inland Empire Archive
Date: 10-15-92 (10:15) Number: 272
From: LAWRENCE GORDON Refer#: NONE
To: ALL Recvd: NO
Subj: Comm ports Conf: (2) Quik_Bas
On 10-13-92 Chris Wagner wrote to Ray Carson...
CW> LG> So, instead of losing this conference, I would
CW> LG> rather see Chris open it
CW> LG> up to all the MS-DOS BASICs, including PowerBasic,
CW> This conference is open to ALL of the BASIC languages, and the BASIC7
CW> conference is open to the professional versions of the same basics.
Chris: you've made my day!
Here's a routine for setting the memory locations for Comm ports
1 through 4. It works in PowerBasic, and may even work in QB
with some modifications:
DECLARE SUB SETPORTS
First, use the Setports routine to initialize the port addresses,
and then you can access COM1 through COM4 when you OPEN COM:
This routine will work on just about any IBM compatible. If you've
changed memory locations or IRQ addresses, just change the
initialization sequence to reflect your actual setup.
... OFFLINE 1.42
--- Maximus 2.00
* Origin: St. Louis User's Group BBS (1:100/4)