EE Pro for TI-89, 92 Plus
Analysis - Computer Engineering
52
SL
Shifts the input to the left by one bit and shifts a 0 into the right-most position.
SR
Shifts the input to the right by one bit and shifts a 0 into the left-most position.
RL
Rotates the input to the left by one bit. The left-most bit wraps around to the right-most
position.
RR
Rotates the input to the right by one bit. The right-most bit wraps around to the
left-most position.
RLC
Rotates bits left by one bit through carry. Loads the left-most bit into the carry and
moves the carry bit into the right-most position.
RRC
Rotates bits right by one bit through carry. Loads the right-most bit into the carry and
moves the carry bit into the left-most position.
ASR
Arithmetic shift right: For 1’s Complement and 2's Complement, it shifts bits to the right,
but keeps the left-most bit (and the sign bit) the same. For Unsigned mode, there is no
sign bit, a 0 is shifted into the left-most position.
SLN
Shifts left by N bits.
SRN
Shifts right by N bits.
RLN
Rotate left by N bits.
RRN
Rotate right by N bits.
RLCN
Rotate left by N bits through the carry.
RRCN
Rotate right by N bits through the carry.
Result:
(Binary Function Value)
Returns an integer result using the number base set in
†
/Binary Mode
.
Example 12.3
For a binary word 16 bits long, shift left by 6 bits, the octal number 2275.
Input Screen
Output Screen
1. Use
the
†
key to access the pop up screen for Binary Mode and select octal for Base: and 16 bits for Word
size; press
¸
to accept the settings.
2. Enter 2275 for the
Binary
number.
3. Enter 6 for
N
, and choose
SLN
for the binary operation.
4. Press
„
to compute the result. The screen display above shows the input and the resulting output screens.
12.4 Bit Operations
This section allows you to perform bit-specific operations. You can set a bit, clear a bit, test a bit or find the total
number of bits in a set.
Field Descriptions
Binary
:
(Input Field)
Enter an integer in the number base
designated in
†
/Binary Mode
or
an
integer preceded by the number base in
parenthesis (b, d, o, or h).
Bit #
:
(Bit Position - not active if
Σ
B is selected)
Enter a binary integer.