Operation Manual

Chapter 2: Math, Angle, and Test Operations 91
valueA and valueB
valueA or valueB
valueA xor valueB
not(
not(not(
not(
not( returns 1 if value (which can be an expression) is 0.
not(value)
Using Boolean Operations
Using Boolean OperationsUsing Boolean Operations
Using Boolean Operations
Boolean logic is often used with relational tests. In the following program, the instructions
store 4 into C.
valueA valueB and or xor
ƒ0 ƒ0
returns 1 1 0
ƒ0
0 returns 0 1 1
0
ƒ0
returns 0 1 1
0 0 returns 0 0 0