Subroutine tactics for the HP-25



#4

Hello all,

Although my 25C may have amnesia, I'd rather salvage my 25C for its functionality.

Since I also have a 55, I've been pondering the idea of implementing subroutines although there is only GTO on both.

Although one idea like the 'Newton's Method' program in the HP-25 Applications Book which build the Newton algorithm surrounding the user function, one idea I was toying with is something like this:

01 1
02 [RCL] 1
03 [GTO] 33
04 0
04 RCL 2
05 [ABS]
06 [GTO] 33
07 [FRAC]

Subroutine--

33 [log]
34[rV]
35 [x=0]
36 [GTO] 04
37 [GTO] 07

In other words, although a simple example, what's in the Y register controls where the [GTO] instruction transfers to at step 35 for both the first and second time the subroutine is called.

Any ideas of other approaches to subroutine techniques on an HP-25 and 55 are welcome as I am looking for new techniques to increase the functionality of my 55 and 25.


Edited: 16 Apr 2012, 9:57 p.m.


#5

Quote:
Since I also have a 55, I've been pondering the idea of implementing subroutines although there is only GTO on both.

Have a look at this 7-page PDF article:

Long Live the HP-25 !

featuring an HP-25 program which manages to call a two-variable user-defined function no less than 4 times with different arguments each time while always returning to the proper place in the computation procedure, and not only does it fit in 49 steps but actually leaves as many as 13 steps free to define the f(x,y) function.

You may get some good ideas for subroutine-like implementation by carefully studying it.

Regards from V.


#6

Thanks very much! To be honest, my train of thought has been greatly refined here at MoHPC Forums. This group has helped me think beyond my usual instincts. I am very grateful for your help and all those here.

#7

You need to obtain a copy of "Computational Analysis with the HP-25 Pocket Calculator" by the late Peter Henrici published by John Wiley & Sons.

Trent Moseley


Possibly Related Threads...
Thread Author Replies Views Last Post
  Strange HP 25 Problem (Repair) Onur Ilkorur 5 647 12-06-2013, 05:13 PM
Last Post: Onur Ilkorur
  HP-25 Wayne Selway 1 290 11-22-2013, 12:58 PM
Last Post: Michael de Estrada
  Interesting Base Conversions - Porting a 1975 HP 25 Program to the HP 35S Eddie W. Shore 1 332 10-13-2013, 07:49 PM
Last Post: BruceH
  HP-25/25C Potential Matt Agajanian 14 1,141 07-17-2013, 02:57 AM
Last Post: Matt Agajanian
  Recharging original batteries in HP 45, 65 and 25 Michae Altmann 1 297 03-05-2013, 12:21 AM
Last Post: DavidShenk
  HP-25 keyboard Brad Barton 5 456 02-16-2013, 09:59 PM
Last Post: Brad Barton
  HP 65/25 shout-out in interview with Paul Lutus Egan Ford 3 354 12-21-2012, 11:09 PM
Last Post: Mike Morrow
  New HP-25 Emulator for iPad, iPhone, and iPod Namir 5 470 05-22-2012, 06:22 AM
Last Post: Mike (Stgt)
  HP-25 aj04062 13 864 03-30-2012, 03:23 AM
Last Post: Russell Dobson
  Re: Spares for vintage calculators HP-25, HP-27? McAllan 1 236 03-02-2012, 08:31 AM
Last Post: samo

Forum Jump: