Hello,
this little program does not work on my HP50g as I expected:
DO UNTIL KEY END 95 SAME
It should wait for a keystroke and then put a 1 on the stack if the PLUS key is pressed or a 0 if any other key is pressed.
Instead it gives 0. for all keystrokes (that is a zero with a decimal point).
The reason seems to be that the KEY command does not return an integer (TYPE 28) but a real Number (TYPE 0) with no decimals. So for the PLUS key it returns 95. but not 95 which is not the SAME.
I found a workaround using R->I, but maybe I overlooked something and there is a simpler solution as this code had worked as expected on my former HP48SX (whose main board is hanging decoratively on the wall of my shack).
So, if somebody here can help me that would be fine.
Regards
Helmut