Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access COM ports 1-4 using Peek & Out statements??

Status
Not open for further replies.

BobTheMad

Programmer
Jun 11, 1999
81
US
I have been successful in the past accessing the LPT1 port using the following type of statements. What are the Hex addresses for Com ports 1, 2, 3, 4 ??

Thanks in advance

-=-=-=- BEGIN CODE EXAMPLE -=-=-=-
DIM DATAPORT
DEF SEG = 0
DATAPORT = PEEK(&H408 + (1 - 1) * 2) + PEEK(&H408 + (1 - 1) * 2 + 1) * 256
DEF SEG

OUT DATAPORT, &H11
-=-=-=- END CODE EXAMPLE -=-=-=- Thought for the day: Beware of Gods who cannot laugh...
 
Thanks for posting that site, but I had already found it. It looks like that is exactly what I needed to know. Thought for the day: Beware of Gods who cannot laugh...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top