HP Forums
34S - Problem With CLx - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: 34S - Problem With CLx (/thread-187939.html)



34S - Problem With CLx - Jake Schwartz - 07-16-2011

Hi,

While debugging a program on the 34S side-by-side with a 15C, I noticed that in the 34S, currently CLx leaves stack lift enabled, which is not the way HP calcs work. In the HP machines, the purpose of disabling stack lift with CLx was so if an erroneous number was entered, CLx would allow entering a replacement value without affecting the stack. For consistency, they kept this behavior the same while running in a program as well.

Hopefully, it makes sense to change this so it works in the 34S like all other RPN machines.

Thanks,
Jake


Re: 34S - Problem With CLx - Gene Wright - 07-16-2011

Agreed.

5 ENTER 6 CLX 8 + should return 13, not 8 as it does now.

Good catch, Jake!


Re: 34S - Problem With CLx - Marcus von Cube, Germany - 07-16-2011

I think this can be done. Thanks for testing.


Re: 34S - Problem With CLx - Paul Dale - 07-16-2011

Definitely a bug, I've got two fixes. One is much cleaner, a tiny bit larger and changers many opcodes. The other is ugly.


- Pauli


Re: 34S - Problem With CLx - Paul Dale - 07-16-2011

And the ugly but smaller fix is applied.


- Pauli


Re: 34S - Problem With CLx - Gene Wright - 07-16-2011

Wow. That was fast. So the CLX + bug is fixed as well as the stack lift issue with PI or a constant?

Very nice!


Re: 34S - Problem With CLx - Paul Dale - 07-17-2011

Hopefully they are both fixed. So are complex constants and complex RCL which were also broken by recent changes.

At least, they will be when we do a new build.


- Pauli