Post Reply 
4-level stack manipulation on 12c
03-04-2015, 04:54 PM (This post was last modified: 03-05-2015 03:38 PM by Gerson W. Barbosa.)
Post: #27
RE: 4-level stack manipulation on 12c
(03-04-2015 03:42 PM)Don Shepherd Wrote:  Thanks Dieter. The 12c doesn't have a roll-up function, however, and in my case I only care about what is in x when the routine completes. But your suggestion is certainly valid for a calculator with roll-up and those that need or want the upper registers filled with the initial x.

I find this feature very handy, so much I don't mind spending one extra step on the regular HP-12C:

Code:

01 f RND            001 f RND
02   Rv             002   Rv
03   ENTER          003   ENTER
04   ENTER          004 g LSTx
05 g LSTx           005   /
06   /              006 g LSTx
07 g LST            007   x<>y
08   x<>y           008 g INTG
09 g INTG           009   *
10   *              010   -
11   -              011 g GTO 000
12 g GTO 00

Gerson.

Edited per Dieter's observation below.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 4-level stack manipulation on 12c - Gerson W. Barbosa - 03-04-2015 04:54 PM



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