Post Reply 
Program without using variables?
10-03-2023, 09:04 PM
Post: #1
Program without using variables?
I am going down a few rabbit holes at the moment and I am exploring the idea of how to take numbers from the stack and use them in a program without storing them to a variable.

Yes, I know about local variables -> a b /<< a b + />> and I use them a lot.

The program I am writing now has six soft menu keys. 1 - 4 store a number from the stack into a variable. 5 executes the program. 6 cleans the variables from memory when I am done evaluating different numbers.

My first thought was to use a list. I place a list on the stack and when I press soft menu keys 1-4 it would store that number in the list on the stack in the appropriate order. This worked well, minus having to have the list on the stack.

Is there a different way to store variables without committing them to memory?

HP48GX, HP42s and DM42.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Program without using variables? - DM48 - 10-03-2023 09:04 PM
RE: Program without using variables? - MNH - 10-04-2023, 12:29 PM
RE: Program without using variables? - MNH - 10-04-2023, 05:53 PM
RE: Program without using variables? - MNH - 10-05-2023, 11:47 AM
RE: Program without using variables? - MNH - 10-05-2023, 11:38 AM
RE: Program without using variables? - MNH - 10-07-2023, 02:26 AM



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