Logic operations

Read(196) Label: bitwise, shift,

 

A

 

1

=and(6,10)

2, bitwise AND

2

=or(3,5)

7, bitwise OR

3

=not(6)

-7, bitwise NOT

4

=xor(6,11)

13, bitwise XOR

5

=shift(13,2)

3, Shift right two bit positions

6

=shift(13,-2)

52, Shift left two bit positions