3 ms·
> I have a question, if you don't mind: Not at all. > I have a stopwatch function in my HP48 that I don't want using a local variable (avoid polluting my prec
by mschaef 7y ago
> I have a question, if you don't mind:
Not at all.
> I have a stopwatch function in my HP48 that I don't want using a local variable (avoid polluting my precious menu), or having to keep it in a stack.
The first thing that comes to mind is that there's a hidden directory at the root that the ROM itself uses to store stuff like this. This link talks a bit about how to get there:
https://www.hpmuseum.org/forum/thread-12986.html https://www.hpmuseum.org/forum/thread-12986.html
This uses SYSEVAL to call into a normally-not-visible object that puts the name of the directory on the stack. From there, you should be able to read/write the variable.
You may also be able to do some hacky stuff with self-modifying code, but that's honestly something I'd avoid unless you want to try it for fun.