Post Reply 
HP 25 Fibonacci sequence in one program step
10-17-2021, 02:17 PM (This post was last modified: 10-17-2021 02:45 PM by Gerson W. Barbosa.)
Post: #25
RE: HP 25 Fibonacci sequence in one program step
(10-16-2021 02:55 PM)Gerson W. Barbosa Wrote:  (Not sure whether I’ve succeeded or not – another one I tried has exactly the same number of steps and bytes)

Surely I hadn’t. It is possible to do it in 6 steps and 17 steps.
Thanks Mike (Stgt) for his comment
“Many think a program must start
with a global label, but no, it needs not” and examples which easily lead to

Code:

00 { 17-Byte Prgm }
01 GTO 00
02▸LBL "Fib"
03 -1
04 ABS
05▸LBL 00
06 RCL+ ST L
07 END

Edited for a minor grammar issue
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 25 Fibonacci sequence in one program step - Gerson W. Barbosa - 10-17-2021 02:17 PM



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