WP 34S mini-challenge
01-21-2014, 10:46 PM (This post was last modified: 01-21-2014 10:53 PM by nsg.)
Post: #35
 nsg Member Posts: 60 Joined: Dec 2013
RE: WP 34S mini-challenge
And here is another way to divide by 2 without touching stack:

Code:
01 LBL A 02 X^2 03 RCL+ L 04 LB 05 DEC X 06 2^X 07 END

There is a middle ground. Use constants 1-4 only. this way only 4 bits (2 fror constant and 2 for operation) represent variation and therefore only 16 opcodes are wasted.
And constants 1-4 cover easily 99% of cases.
(01-21-2014 10:13 PM)Paul Dale Wrote:  I proposed a set of instructions:

Code:
+ nnn - nnn [times] nnn [divide] nnn

Which performed the specified operation to X using the associated constant. Thus, "- 22" would subtract 22 from X (doing the right thing with Last X).
 « Next Oldest | Next Newest »

 Messages In This Thread WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 02:02 AM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 07:29 AM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 10:44 AM RE: WP 34S mini-challenge - walter b - 01-21-2014, 07:59 AM RE: WP 34S mini-challenge - Massimo Gnerucci - 01-21-2014, 08:26 AM RE: WP 34S mini-challenge - walter b - 01-21-2014, 08:26 AM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:34 AM RE: WP 34S mini-challenge - walter b - 01-21-2014, 12:20 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 11:34 AM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:51 AM RE: WP 34S mini-challenge - walter b - 01-21-2014, 12:24 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 10:38 AM RE: WP 34S mini-challenge - walter b - 01-21-2014, 11:08 AM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 08:24 AM RE: WP 34S mini-challenge - Didier Lachieze - 01-21-2014, 08:26 AM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 10:51 AM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:29 AM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 03:44 PM RE: WP 34S mini-challenge - Didier Lachieze - 01-21-2014, 04:07 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 05:41 PM RE: WP 34S mini-challenge - nsg - 01-21-2014 10:46 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 11:16 PM RE: WP 34S mini-challenge - Dieter - 01-22-2014, 01:12 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-22-2014, 05:27 PM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:55 AM RE: WP 34S mini-challenge - Didier Lachieze - 01-21-2014, 12:22 PM RE: WP 34S mini-challenge - walter b - 01-21-2014, 12:29 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 01:06 PM RE: WP 34S mini-challenge - walter b - 01-21-2014, 01:20 PM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:48 AM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 12:23 PM RE: WP 34S mini-challenge - Dieter - 01-21-2014, 08:43 PM RE: WP 34S mini-challenge - Sanjeev Visvanatha - 01-22-2014, 03:44 AM RE: WP 34S mini-challenge - Sanjeev Visvanatha - 01-21-2014, 01:56 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 02:19 PM RE: WP 34S mini-challenge - Sanjeev Visvanatha - 01-21-2014, 04:29 PM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 05:11 PM RE: WP 34S mini-challenge - Sanjeev Visvanatha - 01-21-2014, 05:15 PM RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 10:13 PM RE: WP 34S mini-challenge - walter b - 01-22-2014, 05:15 AM RE: WP 34S mini-challenge - Thomas Klemm - 01-22-2014, 05:47 AM RE: WP 34S mini-challenge - walter b - 01-22-2014, 07:04 AM RE: WP 34S mini-challenge - Didier Lachieze - 01-22-2014, 07:15 AM RE: WP 34S mini-challenge - walter b - 01-22-2014, 08:16 AM RE: WP 34S mini-challenge - Didier Lachieze - 01-22-2014, 08:46 AM RE: WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 11:33 PM RE: WP 34S mini-challenge - Thomas Klemm - 01-22-2014, 06:02 AM RE: WP 34S mini-challenge - Dieter - 01-22-2014, 01:20 PM RE: WP 34S mini-challenge - Thomas Klemm - 01-22-2014, 06:35 PM RE: WP 34S mini-challenge - Dieter - 01-22-2014, 08:27 PM

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