HP Forums
Enter key ignored? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Enter key ignored? (/thread-20663.html)



Enter key ignored? - push - 10-18-2023 09:20 PM

Is there any difference entering:
0
Enter
6
enter
2
/
1
+
*

and

0
Enter
6
enter
2
/
enter
1
+
*

I am getting the same result. Is it a stack overlow?


RE: Enter key ignored? - rprosperi - 10-19-2023 02:05 AM

On what machine? It matters for this question....


RE: Enter key ignored? - teenix - 10-19-2023 03:02 AM

For the 67

Code:


         Stack  X Y Z T
0               0 0 0 0
Enter           0 0 0 0
6               6 0 0 0
enter           6 6 0 0
2               2 6 0 0
/               3 0 0 0
1               1 3 0 0
+               4 0 0 0
*               0 0 0 0

and

0               0 0 0 0
Enter           0 0 0 0
6               6 0 0 0
enter           6 6 0 0
2               2 6 0 0
/               3 0 0 0
enter           3 3 0 0
1               1 3 0 0
+               4 0 0 0
*               0 0 0 0

cheers

Tony


RE: Enter key ignored? - brouhaha - 10-19-2023 03:08 AM

In traditional HP RPN, ENTER disabled stack lift, so while ENTER duplicates X into Y, pushing Y and Z into Z and T, a number keyed in immediately after ENTER does not lift the stack again.

Most calculators that use traditional RPN have a manual appendix describing stack lift disable, and enumerate what operations do it.

RPL.calculators (28, 48, 49, 50) do not work the same way.


RE: Enter key ignored? - John Keith - 10-19-2023 05:54 PM

(10-19-2023 03:08 AM)brouhaha Wrote:  RPL.calculators (28, 48, 49, 50) do not work the same way.

Specifically, if there is an open command line (i.e. you are typing stuff in), Enter evaluates the command line. If there is no command line, Enter duplicates the object on stack level 1. If the stack is empty, pressing Enter gives a "Too Few Arguments" error.


RE: Enter key ignored? - John Garza (3665) - 10-19-2023 10:25 PM

and let's not mention the weirdness of the 9100...

-J