Re: Slow HP48GX Message #5 Posted by Vieira, Luiz C. (Brazil) on 31 May 2004, 10:41 a.m., in response to message #4 by Rick
Hi, Rick;
That's good news. Anyway, there's something else to add to this particular fact you wrote about. Try this program: please, type it in and save it with any name.
« HALT 1 100 FOR X
X 1 DISP I FREEZE
NEXT X
»
Run it after saving it; it will halt prior to execute any command, right? At this very moment, purge it from memory. The program no longer exists, right? But the HALT indicator is still there. So go for it: press [left_arrow][CONT] and... What the h...!
Yeap! Any program you run in fact is copied in RAM and the copy is the one used to perform the program operations. I found this when debugging a program (late 80's) in an HP48SX and I realized that the altered program was not the one used after being saved, instead the original one. It was necessary to KILL program execution and start it again so the alterations made became effective. Than I tested the purging procedure I suggested above and I found that, in fact, the program is copied and maintained till it ends or is stopped. A halted program means a copy of it stored in memory and ready to go ahead.
Interesting, isn't it? You can write a program that purges itself as the first step and it will run anyway. Is it an impression of mine or I'm actually feeling some eyes widely open here...>>>8^O
Cheers!
Luiz (Brazil)
Edited: 31 May 2004, 11:54 a.m.
|