BASIC PROGRAMMING
SECTION 4.2
4.2.3
VER.V09F
TABLE 4.4 CONT.
XOR X
y
X XOR Y
-----------------
T T F
T F T
F
T T
F
F F
EQV
X
y
X EQV Y
-----------------
T
T T
T
F F
F
T F
F'
F'
T
IMP
X
y
X IMP Y
-----------------
T T T
T
F F
F
T T
F F T
LOGICAL OPERATIONS
Logical operators act upon the binary equivalents of decimal
arguments, bit by bit, where the argument is a ·16 bit signed 2's
complement number i.e. in the range -32768 to +32767. For
example:
PRINT 10 Al\'D 6
will print 2, since:
10 = 0000000000001010
6
= 0000000000000110
Performing the AND operation bit by bit, only one bit remains
non zero. See the AND truth table in TABLE 4.4 TRUTH TABLES, for
further detai.ls.
PAGE 4 - 6