beautypg.com

Shftl, Shftr – Texas Instruments TI-86 User Manual

Page 365

background image

Chapter 20: A to Z Function and Instruction Reference

353

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 353 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 353 of 118

shftL

BASE BIT menu

shftL

integer

Returns a real integer with bits shifted one to the left.
Internally, integer is represented as a 16-bit binary
number. When the bits are shifted left, the leftmost bit is
dropped and 0 is used as the rightmost bit.

shftL

0000111100001111Ь = 0001111000011110Ь

shftL

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:

shftL 0000111100001111 b

1111000011110Ü

Leading zeros are not displayed.

shftR

BASE BIT menu

shftR

integer

Returns a real integer with bits shifted one to the right.
Internally, integer is represented as a 16-bit binary
number. When the bits are shifted right, the rightmost
bit is dropped and 0 is used as the leftmost bit.

shftR

0000111100001111Ь = 0000011110000111Ь

shftR

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:

shftR 0000111100001111 b

11110000111Ü

Leading zeros are not displayed.

0

0