EasyManua.ls Logo

AMSTRAD CPC464 - Page 104

AMSTRAD CPC464
249 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
70 PRINT (month=12 OR month=1)
And when the program is run, entering 29 for the day and, say, 5 for the month will produce the
answer in line 50, and the actual values returned by the logical expressions in lines 60 and 70 will be
displayed beneath..
Finally, XOR (exclusive OR) produces a true result as long as both arguments are different. The
following summarises all these features in what is known as a truth table; which is a convenient way
of illustrating what happens in a bitwise logical operation.
Argument A 1 0 1 0
Argument B 0 1 1 0
AND result
0 0 1 0
OR result 1 1 1 0
XOR result 1 1 0 0

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals