Post Reply 
Program using directly the stack
05-02-2020, 07:22 AM
Post: #1
Program using directly the stack
I just received my HP Prime and I try to do a very simple program using the result of a calculation, displayed on the first line of the stack.
How to do it?
My Example:
After a few manipulations, I have the result 125.
I would like to apply the command "R->B" to easily convert and display this value in hexadecimal.
This to avoid to tip: ALPHA R SHIFT 9 -> ALPHA B ENTER

Thanks to help me.
Find all posts by this user
Quote this message in a reply
05-02-2020, 11:21 PM
Post: #2
RE: Program using directly the stack
(05-02-2020 07:22 AM)SimonP Wrote:  I would like to apply the command "R->B" to easily convert and display this value in hexadecimal.
This to avoid to tip: ALPHA R SHIFT 9 -> ALPHA B ENTER

First time only: [Toolbox] (Catalog) [9] [up-cursor] [Enter]
Afterwards: [Toolbox] [Enter]

Alternative: Assign R→B to a USER mode key.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
05-03-2020, 03:30 PM (This post was last modified: 05-03-2020 04:56 PM by pinkman.)
Post: #3
RE: Program using directly the stack
Another alternative :

Put this in a program:

Code:

KEY K_Log() // or any key you don’t often use
BEGIN
 RETURN STRING(R→B(Ans));
END;

Then, turning user mode always on (Shift-Help-Shift-Help) will let you convert the Ans value at any time.

Notice that your question is a bit RPL-oriented. We’re all here fans of RPL, but using the Prime will force you to change of paradigm.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)