System Debug Reference Manual (32650-90888)

32 Chapter2
User Interface
Operators
with pointer/integer arithmetic, only the low-order 30 bits of a short pointer's offset
contribute to the operation. The result is placed back in the same bits of the larger of the
two operands, when they differ in size, which determines the result type. Note that if the
two pointers are logical, their types must be identical due to the space ID check mentioned
above.
Boolean Operators
The Boolean operators are AND, OR, and NOT. They perform logical functions on Boolean and
integer operands and produce Boolean results. Integer operands are considered to be
FALSE if they are 0, otherwise they represent TRUE.
The operation of the Boolean operators is defined below.
AND Logical and. The evaluation of the two Boolean operands produces a
Boolean result according to the following table:
a b a AND b
T T T
T F F
F T F
F F F
OR Logical or. The evaluation of the two Boolean operands produces a Boolean
result according to the following table:
a b a OR b
T T T
T F T
F T T
F F F
NOT Logical negation. The Boolean result is the logical negation of the single
Boolean operand as defined in the following table:
a NOT a
T F
F T
Examples of the use of Boolean operators are listed below:
NOT 0 result = TRUE
NOT 6 result = FALSE
1 AND 0 result = FALSE
1 AND 6 result = TRUE
(1<2) OR (4<2) result = TRUE
Bit Operators
The bit operators are BNOT, BAND, BOR, << (shift left), and >> (shift right). They perform
bitwise logical operations on their operands and return the result as the type of the largest