BBS: Inland Empire Archive Date: 09-16-92 (23:10) Number: 253 From: TOM CARROLL Refer#: NONE To: ALL Recvd: NO Subj: MODEM STATUS Conf: (2) Quik_Bas
I downloaded a public domain door program called Teenage Mutant Ninja
Turtles. It's written in QB 4.5 for an RBBS system. What I'm trying to
find out is the how/what/why's & where's of their comm routines. Here
is one area that I need more info on:
IF Port = 2 THEN
MCR = &H2FC
MSR = &H2FE
ELSE
MCR = &H3FC
MSR = &H3FE
END IF
IF INP(MSR) >= 128 THEN ELSE PRINT "No user online!": END
I understand the INP(MSR) function, and what it's doing, but what I need
to know, is what kinds of status is returned by checking this address.
What is stored there? Can I check the DTR this way through out the
program to ensure the caller hasn't dropped carrier? How does this
correlate with the MCR variable? What is the MCR variable referring to?
Where might I find more info on this, or any comm writing info?
Tom
* OLX 2.2 * Experience=a name everyone gives to his mistakes.
--- FidoPCB v1.3 beta
* Origin: The Data Shop, Kennewick WA (509)582-9493 (HST) (1:347/10)

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