NonStop S-Series Server Description Manual (G06.24+)
TNS Instruction Set
HP NonStop S-Series Server Description Manual—520331-003
11-6
Boolean Instructions Operate on Stack Registers
Boolean Instructions Operate on
Stack Registers
Figure 11-5 shows examples of the four basic Boolean instructions: LAND, LOR, XOR,
and NOT. In these examples of Boolean operations, both operands are on the top of
the register stack. The instructions delete the operands and leave the result on the
register stack, in A.
Figure 11-5. Examples of Boolean Instruction Operations
011011
011011
LAND (Logical AND)
011011 Operand 1
0 + 0 = 0
0 + 1 = 0
1 + 0 = 0
1 + 1 = 1
001110
001010
Operand 2
Result
LOR (Logical OR)
011011 Operand 1
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
001110
011111
Operand 2
Result
XOR (Exclusive OR)
Operand 1
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0
001110
010101
Operand 2
Result
NOT (One’s complement)
Operand
0 -> 1
1 -> 0
100100 Result
VST323.vsd