beautypg.com

Rotl, Rotr – Texas Instruments TI-86 User Manual

Page 359

background image

Chapter 20: A to Z Function and Instruction Reference

347

20ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 347 of 118

20ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 347 of 118

rotL

BASE BIT menu

rotL

integer

Returns a real integer with bits rotated one to the left.
Internally, integer is represented as a 16-bit binary
number. When the bits are rotated left, the leftmost bit
rotates to the rightmost bit.

rotL

0000111100001111Ь = 0001111000011110Ь

rotL

is not valid in

Dec

number base mode. To enter

hexadecimal numbers Õ through Ú, use the

BASE A-F

menu. Do not use 1 to type a letter.

In

Bin

number base mode:

rotL 0000111100001111 b

1111000011110Ü

Leading zeros are not displayed.

rotR

BASE BIT menu

rotR

integer

Returns a real integer with bits rotated one to the right.
Internally, integer is represented as a 16-bit binary
number. When the bits are rotated right, the rightmost
bit rotates to the leftmost bit.

rotR

0000111100001111Ь = 1000011110000111Ь

rotR

is not valid in

Dec

number base mode. To enter

hexadecimal numbers Õ through Ú, use the

BASE A-F

menu. Do not use 1 to type a letter.

In

Bin

number base mode:

rotR 0000111100001111 b

1000011110000111Ь