Integer Modes - 3: Bitwise Operations - HP RPN SCIENTIFIC WP 34S Owner's Manual

Table of Contents

Advertisement

Integer Modes – 3:
Your WP 34S carries all the bitwise operations you may know from the vintage HP-16C,
plus some more. Generally, bits are counted from right to left, starting with number 0 for
the least significant bit. This is important for specifying bit numbers in the operations BC?,
BS?, CB, FB, and SB.
The following examples deal with 8-
set WSIZE 8, LZON on your WP 34S. For seven functions, you will find the schematic
pictures in the table below as they are printed on the backplate of the HP-16C. The 'C' in a
box stands for the carry bit there.
Operation
Shift Left
Shift Right
Arithmetic
Shift Right
Rotate Left
Rotate Right
Rotate Left
through Carry
Rotate Right
through Carry
WP 34S Owner's Manual
Bitwise Operations
bit
words showing leading zeros for easy reading. So
Schematic picture
Edition 3.1
Common start-up
1011. 0 011
Example
Output
0110. 0 110
SL 1
1100. 1 100
SL 2
0101. 1 001
SR 1
0010. 1 100
SR 2
0001. 0 110
SR 3
in 2COMP and 1COMP:
1111. 0 110
in UNSIGN:
ASR 3
0001. 0 110
in SIGNMT:
1000. 0 110
0110. 0 111
RL 1
1100. 1 110
RL 2
1101. 1 001
RR 1
1110. 1 100
RR 2
0111. 0 110
RR 3
0110. 0 110
RLC 1
1100. 1 101
RLC 2
0101. 1 001
RRC 1
1010. 1 100
RRC 2
1101. 0 110
RRC 3
x
b
bc
b
bc
bc
b
b
b
b
bc
b
bc
bc
b
bc
b
bc
bc
b
Page 56 of 211

Advertisement

Table of Contents
loading

Table of Contents