EasyManuals Logo

HP HP-16C User Manual

HP HP-16C
140 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #54 background imageLoading...
Page #54 background image
52
Section
4:
Arithmetic
and
Bit
Manipulation
Functions
Bit
Summation
Pressing
9]
(number
of
bits)
sums
the
bits
in
the
X-register
and
returns
that
value
to
the
X-register.
The
bit
pattern
is
saved
in
the
LAST
X
register.
No
stack
lift
occurs.
(In
word
sizes
1
and
2,
the
result
must
be
interpreted
in
Unsigned
mode.)
““Double’’
Functions
The
HP-16C
provides
several
“double”
functions:
[DBLX]
(double
multiply),
(double
divide),
and
(double
remainder).
These
functions
allow
the
exact
calculation
of
a
product
double
the
given
word
size
and
the
exact
calculation
of
a
quotient
and
remainder
from
a
dividend
of
double
word
size.
The
double
functions
are
most
useful
in
Binary
mode.
To
obtain
meaningful
double
numbers
as
results
in
Hexadecimal
and
Octal
modes,
the
word
boundary
(which
is
based
on
the
number
of
bits)
must
not
“split”
a
digit.
Therefore,
you
should
specify
a
compatible
word
size:
a
multiple
of
four
in
Hex
mode
and
a
multiple
of
three
in
Octal
mode.*
Double
Multiply
The
function
multiplies
two
single-word
quantities
in
the
X-and
Y-registers
to
yield
a
double-word
result
in
the
X-
and
Y-
registers.
(The
stack
does
not
drop.)
The
result
is
right-justified,
with
the
least
significant
bits
returned
in
the
Y-register
and
the
most
significant
bits
returned
in
the
X-register.
The
stack
contents
during
this
operation
are
shown
below.
The
stack
is
filled
with
the
values
t,
z,
y,
and
x,
each
register
holding
one
word.
T
t
Z
z
Y
multiplicand
~xy
||
product
X
multiplier
xy...
|[
(high
order
bits
in
X)
Keys
(o])(0BLX]
*
Section
7
(Programming
Basics)
includes
a
program
for
using
with
Decimal
mode.
Refer
to
page
78.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP HP-16C and is the answer not in the manual?

HP HP-16C Specifications

General IconGeneral
BrandHP
ModelHP-16C
CategoryDesktop
LanguageEnglish

Related product manuals