Posts: 63
Threads: 8
Joined: Dec 2009
It's interesting that the 35s is faster doing register arithmetic
(STO + Z) than simply +ing on the stack. Is that because dropping
the stack each time uses more steps? regards, Glenn
Posts: 2,761
Threads: 100
Joined: Jul 2005
No 49G?
HP 49G
Count: 12,351
Code: 1. << DO 1. + UNTIL 0. END >>
HP 49G
Count: 11,041
Code: << WHILE 1. REPEAT 1. + END >>
Gerson.
Posts: 83
Threads: 5
Joined: Oct 2007
16C using increment
HP-16C
Count: 340
With 0 in I
Code: Lbl A, Isz, Gto A
Posts: 117
Threads: 16
Joined: Jul 2009
Hello Gene,
congrats, a real great compilation of that simple benchmark across several generations of calculators!
However, for the great HP41C/CV/CX one benchmark is missing: MCODE
In the book "HP41 MCODE for Beginners" of Ken Emery, published 1985, a 20-step machine code for this 1+ addition algorithm is presented (pages 50-52) which I wont list here.
To make things short:
Count: ~130 000
This is about 100-fold of FOCAL or Synthetic programs!
The 41 was, is and remains amazing