EasyManuals Logo

HP HP-28S User Manual

HP HP-28S
341 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 #260 background imageLoading...
Page #260 background image
• Local-variable structure. PRESERVE creates a local variable just to
remove
the
object from
the
stack briefly; its defining
program
does
little except evaluate
the
program
argument
on
the
stack.
Program
F.:CLF
.;.
f
E'·}RL
f
::nclF
::;:.
I ENTER I
c::J
PRESERVE I STO I
Comments
Begin
the
program.
Recall a 64-bit binary integer
representing
the
status
of
all 64
user
flags.
Store
the
binary
integer in a local
variable
f.
Begin
the
defining program.
Execute
the
program
argument.
Restore
the
status
of
all 64
user
flags.
End
the
defining program.
End
the
program.
Put
the
program
on
the
stack.
Store
the
program
as PRESERVE.
Example. PRESERVE is
demonstrated
in
the
program
BDISP.
BDISP (Binary Display)
Display a
number
in HEX, DEC, OCT,
and
BIN bases.
Arguments
Results
1 : #
n
1 : #
n
1 : n
1 :
n
Techniques:
• IFERR
..
, THEN
...
END (error trap).
To
accomodate real
numbers,
BDISP includes the
command
F.:.;.
8 (real-fa-binary). However, this
command
causes
an
error if
the
argument
is already a
binary
integer.
28:
Programming
Examples
259

Table of Contents

Other manuals for HP HP-28S

Questions and Answers:

Question and Answer IconNeed help?

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

HP HP-28S Specifications

General IconGeneral
BrandHP
ModelHP-28S
CategoryCalculator
LanguageEnglish

Related product manuals