Texas Instruments TI-89 Titanium User Manual page 870

Hide thumbs Also See for TI-89 Titanium:
Table of Contents

Advertisement

xor
MATH/Test menu
Boolean expression1
expression
Returns
true
Boolean expression2
Returns
false
expression2
simplified Boolean expression if either of the original
Boolean expressions cannot be resolved to true or
false.
Note: See
integer1
integer2
xor
Compares two real integers bit-by-bit using an
operation. Internally, both integers are converted to
signed, 32-bit binary numbers. When corresponding
bits are compared, the result is 1 if either bit (but not
both) is 1; the result is 0 if both bits are 0 or both
bits are 1. The returned value represents the bit
results, and is displayed according to the
mode.
You can enter the integers in any number base. For
a binary or hexadecimal entry, you must use the 0b
or 0h prefix, respectively. Without a prefix, integers
are treated as decimal (base 10).
If you enter a decimal integer that is too large for a
signed, 32-bit binary form, a symmetric modulo
operation is used to bring the value into the
appropriate range.
Note: See
XorPic
CATALOG
picVar
row
XorPic
[,
Displays the picture stored in
Graph screen.
Uses
xor
positions that are exclusive to either the screen or
the picture are turned on. This instruction turns off
pixels that are turned on in both images.
must contain a pic data type.
picVar
and
row
column
coordinates for the upper left corner of the picture.
Defaults are (0, 0).
Appendix A: Functions and Instructions
Boolean expression2
xor
if
is
Boolean expression1
true
is false, or vice versa.
if
and
Boolean expression1
are both true or both false. Returns a
.
or
integer
.
or
column
] [,
]
on the current
picVar
logic for each pixel. Only those pixel
, if included, specify the pixel
true xor true ¸
Boolean
(5>3) xor (3>5) ¸
and
Boolean
In Hex base mode:
0h7AC36 xor 0h3D5F ¸ 0h79169
xor
Important: Zero, not the letter O.
In Bin base mode:
0b100101 xor 0b100 ¸0b100001
Base
Note: A binary entry can have up to 32 digits
(not counting the 0b prefix). A hexadecimal
entry can have up to 8 digits.
false
true
867

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents