Re: WP34S complex RCL Message #2 Posted by fhub on 21 Sept 2011, 10:19 a.m., in response to message #1 by John Abbott (S. Africa)
Quote:
Hi, I don't have a real WP34S yet, so I was using the emulator and doing some complex RCL's (RCL- , RCL+ etc) while running a test program, and noticed the following:
Lets say I have stored a complex number say 2+i1 in register 16. If on the stack I have in [stack]Y, 1 and in [stack]X, 2.002.
Now I perform the following: [cpx]RCL- 16. I should get 0.002 in X and 0 in Y (ie [2.002+i1]-[2+i1]). Instead I get -.002 in X and 0 in Y (ie [2+i1]-[2.002+i1]).
This seems to contradict the manual as well.
If I have misinterpreted something, I apologise.
Revision of emulator with VERS is: 34S 2.1 1610.
Regards
John
Yes you're right, I've just tried it and unfortunately I can confirm this bug! :-(
I've also tried CPX RCL/ nn and got the same result, so the complex register arithmetic with RCL is incorrectly implemented, it does reg-/stk instead of stk-/reg (of course CPX RCL+/RCL* doesn't matter).
The other direction CPX STO- or STO/ seems to be correct at least ...
Franz
Edited: 21 Sept 2011, 10:22 a.m.
|