BBS: Inland Empire Archive Date: 11-02-92 (21:44) Number: 370 From: JON LEGER Refer#: NONE To: BOB PERKINS Recvd: NO Subj: Re: Let's get some code b Conf: (2) Quik_Bas
BP> IF (INP(&H3ED) AND 1) THEN 'data coming in.
BP> DO 'go into input loop..
BP> x% = INP(&H3E8) 'get the character.
BP> IF x% = 10 THEN EXIT DO 'input terminated with linefeed..
BP> z$ = z$ + CHR$(x%) 'add character to string..
BP> LOOP WHILE (INP(&H3ED) AND 1) 'safety net if LF not seen..
BP> END IF
This goes out to everybody that understands the above message...
Now I get the bit about INPing from the address for COM3: (I think that's
COM3:), but what's that:
INP(&H3ED) AND 1
What does that mean, 'AND 1'? I never did understand that...
Later,
"One Very Confused", Jon
--- Renegade v7-09 Beta
* Origin: TELESiS BBS 409.721.9414 NEDERLAND, TX (1:3811/118)

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