Post Reply 
Clearing Return Stack on HP-15C
10-06-2024, 07:20 PM (This post was last modified: 10-06-2024 07:20 PM by Pekis.)
Post: #4
RE: Clearing Return Stack on HP-15C
(10-06-2024 05:11 PM)Nihotte(lma) Wrote:  The HP15C PUSH all return address from a GSB instruction and stops when the dedicated stack is full
So a RTN instruction POP an address and this releases a level
The HP15C has the particularity of conserving all its context after passage in OFF mode
Probably it keeps all again on error (i doesn't make the test), but without acknowledging the error!

Of course I understand that the HP15C push/pop one level every time it encounters a GSB/RTN so that at the end of a program, the return stack is clear.
The problem is when you interrupt a program currently running a subroutine at a deep level. If you launch a second program, when those return adresses from the first program will be cleared ?... If not, they would prevent the return stack to use of all of ts 7 levels in the second program ...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Clearing Return Stack on HP-15C - Pekis - 10-06-2024, 12:58 PM
RE: Clearing Return Stack on HP-15C - Pekis - 10-06-2024 07:20 PM



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