05-20-2020, 12:19 AM
(05-19-2020 10:53 PM)Sylvain Cote Wrote: [ -> ](05-19-2020 09:17 PM)rprosperi Wrote: [ -> ]I guess I didn't realize that a RTN, with no pending return stack just does a STOP.Same behaviour on all RPN programmable since HP-67.
Not so. On some (many?, few?) machines, when you reach a RTN, it goes back to step 000 first, and then stops.
Here's an HP-34C program fragment:
Code:
01 LBL-A
02 5
03 0
04 0
05 0
06 ENTER
07 6
08 X (multiply)
09 RTN
10 1
11 CHS
12 *
13 RTN
GTO .000
[R/S]
Change to PRGM mode, what line number are you on?
Give it a try...
Edit-1: HP-41 stops upon hitting the RTN, with the PC on the next statement, as also seen on the 42S
How about other machines???
Edit-2: HP-15C goes to step 000 and stops, like the 34C
Edit-3: HP-67 stops upon hitting the RTN, with PC on the next statement
Who else has machines to test? Maybe a pattern will emerge, but it seems this behavior was not at all consistent across various model lines.