Post Reply 
Recalling X-MEM files information - RAMPAGE
06-28-2021, 12:00 AM
Post: #3
RE: Recalling X-MEM files information - RAMPAGE
(06-25-2021 03:15 PM)Ángel Martin Wrote:  If I understand your description, why not saving the current pointer using RCLPTA, so you can restore it later with SEEKPTA?

There's a brief description of the file headers in the ToolBox/RamPage manual, look at the appendix section.

ÁM

Yes, Angel. I discovered this too re-reading the X files use in HP-41CX manual.
Actually, there's no need to save the pointer of each x-file opened, as each one has his own header which is preserved even if the file is not the current.
So, just save the name of actual before selecting the desired one in a structure of a stack: last in, last out - include always on first record.
Just was wondering about recursiviness or the rotine A call B that calls A again, but this is very crazy. In the case of recursive programs, there would be necessity of saving the pointer, but what would be the effectiviness if variables have been changed? I'll not allow duplicated files name in stack, so, no recursiveness.
Best regards!
Artur

ARTUR MARIO JUNIOR
BRAZIL
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Recalling X-MEM files information - RAMPAGE - Artur - Brasil - 06-28-2021 12:00 AM



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