Download  Print this page

Preserve (save And Restore Previous Status) - HP -28S Manual

Advanced scientific calculator.
Hide thumbs

Advertisement

• String operations. PAD demonstrates how to convert an object to
string form, count the number of characters, and concatenate two
strings.
Program
«
-tSTR
WHILE
DUP SIZE
REPEAT
II
II
SWAP
END
"
I
ENTER
I
CJ
PAD
I
STO
I
23
<
+
Comments
Begin the program.
Make sure the object is in string
form. (Strings are unaffected by
this command.)
Begin WHILE clause.
Does the string contain fewer
than 23 characters?
Begin REPEAT clause.
Add a leading space.
End REPEAT clause.
End the program.
Put the program on the stack.
Store the program as PAD.
Example. PAD is demonstrated in the program BDISP.
PRESERVE (Save and Restore Previous Status)
Given a program on the stack, store the current status, execute the
program, and then restore the previous status.
Arguments
Results
1 : «
program
"
1 :
(result of program)
Techniques:
• RCLF and STOF. PRESERVE uses RCLF
(recall [lags)
to record the
current status of the calculator in a binary integer and STOF
(store
[lags)
to restore the status from that binary integer.
258
28: Programming Examples
I

Advertisement

Table of Contents

   Also See for HP HP-28S

   Related Manuals for HP HP-28S

Comments to this Manuals

Symbols: 0
Latest comments: