Post Reply 
Programming Exercise (HP-15C, 15C LE - and others)
03-30-2014, 01:38 AM (This post was last modified: 03-30-2014 01:39 AM by Gerson W. Barbosa.)
Post: #65
RE: Programming Exercise (HP-15C, 15C LE - and others)
(03-30-2014 12:51 AM)Marcel Samek Wrote:  
(03-30-2014 12:07 AM)Gerson W. Barbosa Wrote:  66 R/S --> 3.141592654 (2 m 37 s)

I took your program and put it on the HP-67. Same result in 1 m 16 s. The other HP-55 program when run on the hp-67 had run a little less than twice as fast, while this ran a little more than twice as fast. With the exception of the label for the goto, the programs are identical.

I assume that the difference is that this program is longer and the penalty for the non-merged instructions is making the difference.
I'd better have used another register for summing up the terms rather than the stack. This would save at least two steps inside the loop. No more than some ten second gain, I think (unless some optimization is tried - no idea about though). Even the prefix key takes up one step. This makes 49 steps almost nothing!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-30-2014 01:38 AM



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