EasyManua.ls Logo

HP HP-16C - Logical Operations; Section 4: Arithmetic and Bit Manipulation Functions; EXCLUSIVE OR; Shifting and Rotating Bits

HP HP-16C
140 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
44
Section
4:
Arithmetic
and
Bit
Manipulation
Functions
Keystrokes
Display
([STATUS]:
2-16-0000)
66
66
h
Hexadecimal
mode.
7
(%]
E
h
C
annunciator;
flag
4
set.
66/7
leaves
a
remainder.
2(%]
7
h
Noannunciator;
flag
4
cleared.
E/2
leaves
no
remainder.
4 3
h
Remainder
of
7/4.
Square
Root
The
function
calculates
the
square
root
of
the
number
in
the
X-register.
The
fractional
part
of
the
square
root
is
truncated.
If
this
fraction
is
not
zero,
flag
4
(carry)
is
set;
otherwise,
flag
4
is
cleared.
Negative
Numbers
and
Complementing
Changing
Signs.
The
function
(change
sign)
will
change
the
sign,
forming
the
complement
(1’s
or
2’s)
of
the
number
in
the
X-register.
If
the
X-register
holds
the
largest
possible
negative
number
in
2’s
Complement
mode,
the
only
effect
of
pressing
will
be
to
set
flag
5
(out-of-range).
In
Unsigned
mode,
forms
a
2’s
complement
and
sets
flag 5
(G
annunciator)
as
a
reminder
that
a
negative
number
is
outside
the
range
of
Unsigned
mode.
To
key
in
a
negative
number,
press
after
its
digits
have
been
keyed
in.
terminates
digit
entry
in
Integer
mode.
Absolute
Value.
Pressing
9]
converts
the
number
in
the
X-register
to
its
absolute
value,
forming
the
1’s
or
2’s
complement
of
a
negative
number.
There
is
no change
if
the
calculator
is
in
Unsigned
mode
or
if
the
number
is
positive.
If
the
X-register
holds
the
largest
possible
negative
number
in
2’s
Complement
mode,
the
only
effect
of
will
be
to
set
flag 5
(out-of-range).
Logical
Operations
The
logical
(Boolean)
operations
NOT,
OR,
AND,
and
EXCLU-
SIVE
OR
return the
results
of
a
bit-by-bit
analysis
of
a
binary
number.
The
functions
[OR],
[AND],
and
operate
on
the
bits
in

Table of Contents

Related product manuals