HP 65 program tips



#2

Somewhere on the hp65 owner's handbook it stats that when starting program execution from the keyboard pressing [R/S], the first [RTN] is ignored by the calculator and it stops at the second [RTN] found. That's true, but it seems not only the first [RTN] is ignored, also every [g][NOP] instruction found till the second [RTN].

If you try the following program (clear memory first):

LBL A_
5_
RTN_
2_
g NOP_
+_
RTN

Pressing [A] will leave the answer 5, pressing [GTO][A] and then [R/S] will leave 7!

If you try this other program (clear memory first):

LBL A_
1_
RTN

Switch to RUN mode and press [GTO][A] and [R/S]. The calculator passes through A and all following [g][NOP] steps on memory, back to top of memory and stops at [RTN]. If you look the stack contents the number 1 is on both X and Y registers (A has been executed two times).

Supose I'm the LAST one who discovers this...


#3

I think something like this was described back in the 1974/1975 PPC Journal issues.

By the way, if you DON'T have a copy of those from Jake Schwartz on CD, you're really missing a wonderful resource. :-)


#4

I have the museum CD's, is this Jake Schwartz CD on them?


#5

http://www.pahhc.org/ppccdrom.htm

Quite an impressive set!
Gene


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP 41 Advanced Programming Tips Michael Fehlhammer 0 138 11-28-2013, 06:11 PM
Last Post: Michael Fehlhammer
  [HP Prime] Tips for Solving Differential Equations More Efficiently Chris Pem10 8 364 11-21-2013, 08:25 PM
Last Post: Chris Pem10
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 325 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  HP-65 short circuit Ignacio Sánchez 2 207 10-22-2013, 08:27 AM
Last Post: Ignacio Sánchez Reig
  HP-65 Video Tapes - Anyone have a Copy? Bill (Smithville, NJ) 3 275 10-09-2013, 07:40 PM
Last Post: Paul Berger (Canada)
  Using your HP-65 as a clock! Don Shepherd 24 852 10-08-2013, 11:53 AM
Last Post: Don Shepherd
  HP-65 to kill... Benoit Maag 11 463 08-15-2013, 08:18 PM
Last Post: Jake Schwartz
  For sale: HP 25C and Stat Pac 2 for HP 65 Michae Altmann 1 178 04-21-2013, 01:24 PM
Last Post: Raymond Del Tondo
  Repair my HP 65 motor? Michae Altmann 1 162 04-13-2013, 10:03 PM
Last Post: aj04062
  Repairing HP 65 Michae Altmann 5 283 03-15-2013, 04:13 AM
Last Post: Joel Setton (France)

Forum Jump: