Ports and Interfaces > General Discussion

Logical .And.

(1/1)

chet:
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:
Reaching all the way back to 1989!

That page explains that the operators perform bitwise operations.

So 3 AND 2:

00000011
AND
00000010
=
00000010

Navigation

[0] Message Index

Go to full version