Post Reply 
HP-25 Subroutines possible?
06-25-2017, 08:47 AM (This post was last modified: 06-25-2017 11:26 AM by Dieter.)
Post: #15
RE: HP-25 Subroutines possible?
(06-25-2017 02:42 AM)teenix Wrote:  This simple method is not practical, but it does create a "subroutine" which adds 1 to memory 2 (3 times).

This illustrates nicely the second point in my previous post: "Doing this without subroutines is quite cumbersome and requires some tricks – as well as additional memory for implementing these instead of a simple subroutine call."

Compare that 23 step version with a simple subroutine solution:

Code:
01 CLX
02 STO 2
03 GSB 08
04 GSB 08
05 GSB 08
06 RCL 2
07 GTO 00
08 1
09 STO+2
10 RTN

Doing this without subroutines requires a substantial overhead that fills up valuable memory. With merely 49 steps this is much more relevant than on a calculator with less limited resources. So it's good to see that HP included subroutines on the 33E/C.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-25 Subroutines possible? - Gene - 06-20-2017, 09:19 PM
RE: HP-25 Subroutines possible? - Dieter - 06-24-2017, 10:01 AM
RE: HP-25 Subroutines possible? - teenix - 06-25-2017, 02:42 AM
RE: HP-25 Subroutines possible? - Dieter - 06-25-2017 08:47 AM
RE: HP-25 Subroutines possible? - teenix - 06-25-2017, 11:19 AM
RE: HP-25 Subroutines possible? - bshoring - 06-26-2017, 09:16 PM
RE: HP-25 Subroutines possible? - teenix - 06-27-2017, 02:59 AM
RE: HP-25 Subroutines possible? - Namir - 06-29-2017, 07:15 AM
RE: HP-25 Subroutines possible? - teenix - 06-29-2017, 01:28 PM



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