Post Reply 
HP-41: POP Return Stack?
02-07-2018, 06:42 PM
Post: #1
HP-41: POP Return Stack?
Trying to find the simplest way to POP the latest address from the Return Stack. FOCAL or MCODE. Anyone?
Find all posts by this user
Quote this message in a reply
02-07-2018, 06:45 PM
Post: #2
RE: HP-41: POP Return Stack?
RTN ?
Find all posts by this user
Quote this message in a reply
02-07-2018, 06:52 PM
Post: #3
RE: HP-41: POP Return Stack?
(02-07-2018 06:45 PM)Sylvain Cote Wrote:  RTN ?

No, I want to POP/remove one return call without invoking it.
Find all posts by this user
Quote this message in a reply
02-07-2018, 06:54 PM (This post was last modified: 02-07-2018 06:56 PM by Gene.)
Post: #4
RE: HP-41: POP Return Stack?
Try POPRTN from the Warp Core / Total Rekall module.

Function 63 in the FAT. MCode written by Poul Kaarup.

Update: Nope, sorry that isn't what I thought. Won't work.
Find all posts by this user
Quote this message in a reply
02-07-2018, 07:01 PM
Post: #5
RE: HP-41: POP Return Stack?
Ok, try this:

POPADR in the XROM rom manual. "Removes one pending routine address off the RTN stack and shifts the rest one level down. No output to X is produced."

XROM 31,38 by Hakan Thorngren and also in the RAMBOX module.
Find all posts by this user
Quote this message in a reply
02-07-2018, 07:58 PM
Post: #6
RE: HP-41: POP Return Stack?
(02-07-2018 07:01 PM)Gene Wrote:  Ok, try this:

POPADR in the XROM rom manual. "Removes one pending routine address off the RTN stack and shifts the rest one level down. No output to X is produced."

XROM 31,38 by Hakan Thorngren and also in the RAMBOX module.

Excellent. Thanks.

Now this was a quick and efficient forum response to my query :-)
Find all posts by this user
Quote this message in a reply
02-07-2018, 08:15 PM
Post: #7
RE: HP-41: POP Return Stack?
And that was a very clean MCODE function without dependencies, even without jumps. Easily copied into the ROM I'm working on in less than 45 seconds.
Find all posts by this user
Quote this message in a reply
Post Reply 




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