HP RPN SCIENTIFIC WP 34S Owner's Manual page 57

Table of Contents

Advertisement

Note the picture for ASR correctly describes this operation for 1's and 2's complement
modes only. In all modes of the HP-16C, however, ASR 3 equals a signed division by 2
hence the different results for the latter two modes shown above. The other bitwise
operations are insensitive to complement mode setting. For further details about those
operations, turn to the IOP.
Now let us show you the bitwise two-number functions provided as well. Of these, Boole's
operators AND, OR, and XOR are found in the light blue frame drawn here:
Again, we will use 8-
See the
IOP
for those and further commands working on bit level in integer modes (NOT,
LJ and RJ, MASKL and MASKR, MIRROR, RAN#, and nBITS). Unless on the keyboard,
the commands mentioned so far are found in the catalog
there are also BS? and BC? in TEST.
Finally, note that no such operation will set an overflow. Carry is only settable by shift or
rotate functions as demonstrated above. And ASR is the only bitwise operation being
sensitive to complement mode settings – ASR is the link to integer arithmetic operations.
WP 34S Owner's Manual
bit
words for the following examples:
Common input
Operation
AND
NAND
OR
NOR
XOR
XNOR
0110. 1 011
Y
1011. 1 001
X
Output
0010. 1 001
1101. 0 110
1111. 1 011
0000. 0 100
1101. 0 010
0010. 1 101
X.FCN
Edition 3.1
b
b
b
b
b
b
b
b
in integer modes. And
Page 57 of 211
3
,

Advertisement

Table of Contents
loading

Table of Contents