Boolean logic operations – Texas Instruments solar TI-36X User Manual

Page 41

Advertising
background image

39

Ti36eng1.doc TI-36X II Manual Linda Bower Revised:
01/10/03 10:47 AM Printed: 01/10/03 10:47 AM Page 39 of
48

Boolean Logic Operations

Press

- to access a menu of Boolean Logic

operations.

Function Effect on Each Bit of the Result

AND

0 AND 0 = 0

0 AND 1 = 0

1 AND 1 = 1

OR

0 OR 0 = 0

0 OR 1 = 1

1 OR 1 = 1

XOR

0 XOR 0 = 0

0 XOR 1 = 1

1 XOR 1 = 0

NOT

NOT 0 = 1

NOT 1 = 0

2’s

2’s complement

Except for

NOT and 2’s complement

, these functions

compare the corresponding bits of two values. The
result is displayed in the current number base.

You can perform logical operations in the decimal,
octal, and hexadecimal modes.

³

Examples

Perform the operations 9 AND 2, 9 OR 2, and 9 XOR 2.

9

-

and or xor

Þ

,-/

2

V

9 and 2

ß

0.

,-/

9

- " 2 V

9 or 2

ß

11.

,-/

9

- " " 2 V

9 xor 2

Я

11.

,-/

Advertising