Post Reply 
HP-25 Subroutines possible?
06-24-2017, 10:01 AM (This post was last modified: 06-24-2017 10:10 AM by Dieter.)
Post: #11
RE: HP-25 Subroutines possible?
(06-23-2017 06:13 PM)Dave Britten Wrote:  They could have gotten away with only having GSB 01, GSB 02, and GSB 03, with the programmer expected to place an appropriate GTO in those three locations (and another GTO at step 00 to branch to the proper entry point). But as others have pointed out, it would have been of limited use with only 49 program steps to work with.

I beg to differ. I think subroutines even make sense with 49 (merged) steps, just as they do on the SR56 with 99 unmerged ones. There are essentially two reasons.
  1. Subroutines can make programs shorter. Program parts that occur multiple times need to be coded only once. With line addressing even a short sequence of five steps that appears twice in a program would require ten steps regularly and eight with subroutine calls. With only 49 available steps this can make a difference.
  2. A substantial number of programs for programmable calculators handles user defined functions, e.g. root solvers, integration programs, differential equations and many more. 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.

That's why I think that subroutines would have been very useful on the HP25. Just as they were later on the 49 step HP33E/C or the 50 step TI57. There would have been enough space for the required 50 additional opcodes, but since memory was limited this feature had to be omitted.

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: 1 Guest(s)