09-18-2019, 07:41 PM
Hi,
I wanted to run a list of commands in RPN mode and the closest examples I found was RPN Stack by Steve Tuc and Run Macro by Eddie Shore.
Below is what I found to work right now if it can be of use to others.
However, I am wondering if there is a better solution or if new features have been added to the Prime that would allow writing to the stack.
//Alpha_Dot based on RPN Stack by Steve Tuc
//Step 1. Write RPN commands in a Note
//Step 2. In RPN mode on the Terminal, enter the note name in quotes and press enter
//Step 3. Press the keys Alpha Key and Dot Key to pull the commands from the Note to the Terminal (User Mode need to be enabled with Shift + User/Help)
KEY KA_Dot()
BEGIN
RETURN IFTE(Entry==2,Notes(Ans(1)),"{Ans(1)}");
END;
I wanted to run a list of commands in RPN mode and the closest examples I found was RPN Stack by Steve Tuc and Run Macro by Eddie Shore.
Below is what I found to work right now if it can be of use to others.
However, I am wondering if there is a better solution or if new features have been added to the Prime that would allow writing to the stack.
//Alpha_Dot based on RPN Stack by Steve Tuc
//Step 1. Write RPN commands in a Note
//Step 2. In RPN mode on the Terminal, enter the note name in quotes and press enter
//Step 3. Press the keys Alpha Key and Dot Key to pull the commands from the Note to the Terminal (User Mode need to be enabled with Shift + User/Help)
KEY KA_Dot()
BEGIN
RETURN IFTE(Entry==2,Notes(Ans(1)),"{Ans(1)}");
END;