-=> Mocking Nick to Ian <=-
(Mock, mOck, moCk, mocK)
NC> The difference being that bitwise functions simply look at the
NC> bits of a number (or two numbers) and act accordingly. Logical
NC> functions check to see if a value is TRUE or FALSE. Since OR, AND,
but true and false are expressable as 1 and 0... and on a pc they're the
same thing...
NC> The best way to demonstrate logical operators is to use
NC> real-life situations. Let's say your father asked you, "Did you take
NC> out the trash AND do the dishes?"
is bit 7 set in both ax AND dx?
NC> Maybe I can use a BASIC statement to illustrate logical:
NC> IF a% AND b% THEN ....
NC> BASIC determines a value to be TRUE if it is nonzero. If a% is
NC> TRUE, and b% is TRUE, then do the stuff after THEN.
correct me if i'm wrong, but if you look at the actual contents of a
boolean value, don't you find 1 or 0? true and false are just
interpretations that make it easier for people to understand what the
computer is doing...
... i missed Bill Gates at COMDEX, but i'll get him next year...
--- TGWave v1.20.b09
---------------
* Origin: fks Online! * Ontario, Canada * (905)820-7273 * (1:259/423)
|