beautypg.com

Texas Instruments TI-36X Solar User Manual

Page 25

background image

24

TI36XSUS.DOC MURFE pruning--US version Pat Hatcher
Revised: 06/17/99 4:37 PM Printed: 06/17/99 4:37 PM
Page 24 of 29

Boolean Logic Operations

You can perform logical

AND

,

OR

,

XOR

,

XNOR

, and

NOT

operations in the decimal, binary, octal, and

hexadecimal modes.

Except for

NOT

, these functions compare the

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

Note: Although the TI

-

36X Solar does not display

leading zeros for integers, logical operations treat each
value as a 10-digit binary number. (A displayed value of
0, for example, is treated as 0000000000

BIN

, and a

displayed value of 1 is treated as 0000000001

BIN

.)

Keep this in mind if you see unexpected results.

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

XNOR

0 XNOR 0 = 1

0 XNOR 1 = 0

1 XNOR 1 = 1

NOT

NOT 0 = 1

NOT 1 = 0

What is the binary result of 9 F

H E X

XOR 01

HEX

?

"

HEX

0

9F

"

1

O

HEX

9E

"

BIN

10011110