Re: Let's get some code b

 BBS: Inland Empire Archive
Date: 11-04-92 (08:53)             Number: 374
From: JON LEGER                    Refer#: NONE
  To: BOB PERKINS                   Recvd: NO  
Subj: Re: Let's get some code b      Conf: (2) Quik_Bas
BP>   I'm checking a status bit to see if a character has arrived.  In this ca
BP> bit 0 of the byte @ &h3ed.  Bit 0 is equal to 1 if set, so if I AND the by
BP> at this address with 1 and get 1 in return (instead of 0), then I know tha
BP> bit 0 is set. Using the below example, if I want to check bit 1 then I wou
BP> AND the byte with 2.  If I wanted to check bit 2 then I would AND the byte
BP> with 4.  And so on..

So if I did this:

INP(&H3E8) AND 1

I should get a 0 back?

Jon

--- Renegade v7-09 Beta
 * Origin: TELESiS BBS 409.721.9414 NEDERLAND, TX (1:3811/118)
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