Author Topic: Logical .And.  (Read 24028 times)

chet

  • Member
  • ***
  • Posts: 5
Logical .And.
« on: June 15, 2020, 03:41:47 pm »
In Intel's book "MCS Basic-52 Operating and Reference Manual" Version 1 & 1.1 page 75, the following print statement is made -Print 3.And.2 with the result of 2.  How does this come about? The only logic use of "And" I can find references only 0 's and 1 's and that does not seem to fit the above logic?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Logical .And.
« Reply #1 on: June 15, 2020, 03:53:44 pm »
Reaching all the way back to 1989!

That page explains that the operators perform bitwise operations.

So 3 AND 2:

00000011
AND
00000010
=
00000010