(41CX) Recall Stat Regs By Name
|
03-04-2016, 02:03 PM
(This post was last modified: 03-05-2016 06:03 PM by Dave Britten.)
Post: #1
|
|||
|
|||
(41CX) Recall Stat Regs By Name
Here's a really simple program for recalling the stat registers by name, independent of the currently defined ΣREGS. This requires the ΣREG? function present on the 41CX. To use, simply XEQ any of these labels:
ΣX ΣX^2 ΣY ΣY^2 ΣXY ΣN This program is notable in that it requires no storage registers, and only a single stack level, so it's as unintrusive as simply recalling the register directly*. There's a slight efficiency penalty to make this possible, so it's not really suitable for use in tight loops. Code: 01 LBL "ΣX" *Note that running this program enables stack lift, so whereas "CLX, RCL 11" would leave Y, Z, and T as-is, "CLX, XEQ ΣX" will lift X and discard T. EDIT: Saved a few bytes. EDIT Again: Saved a couple more bytes. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41CX) Recall Stat Regs By Name - Dave Britten - 03-04-2016 02:03 PM
RE: (41CX) Recall Stat Regs By Name - Dieter - 03-05-2016, 08:46 PM
RE: (41CX) Recall Stat Regs By Name - Werner - 03-05-2016, 09:23 PM
RE: (41CX) Recall Stat Regs By Name - Dieter - 03-05-2016, 10:28 PM
RE: (41CX) Recall Stat Regs By Name - rprosperi - 03-06-2016, 12:34 AM
RE: (41CX) Recall Stat Regs By Name - Dieter - 03-06-2016, 01:45 PM
RE: (41CX) Recall Stat Regs By Name - Sylvain Cote - 03-06-2016, 02:41 PM
RE: (41CX) Recall Stat Regs By Name - Dieter - 03-06-2016, 07:55 PM
|
User(s) browsing this thread: 1 Guest(s)