Bug in WP34S? - 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: Bug in WP34S? (/thread-228555.html) |
Bug in WP34S? - Namir - 08-05-2012 Hi all, I am using WP34S emulator version 3.1, Build date June 2, 2012, Svn revision 3103. I wrote a program that compares the value of the X register in the stack with values in global registers. The tests (especially x<=? -> 22 and the like) did not return the expected logical result. Replacing indirect testing with old fashioned (HP-41C style) comparison made the program work as expected. Has this bug been caught and corrected in subsequent builds?
Namir
Re: Bug in WP34S? - Walter B - 08-05-2012 Hi Namir, Please be a little bit more specific: What exactly did you try which doesn't work as expected?
TIA
Re: Bug in WP34S? - Namir - 08-05-2012 Walter, Here is an example. The 41-style code that works is:
RCL 22 When memory register 11 has a value less than or equal to the value in memory register 22, the program executes the GTO 15 command. When I translated it to:
RCL 11 It won't work. The program ignores GTO 15 and moves on to the next commands. Am I using the new test in reverse? Should it be?
RCL 22 This "bug" appeared in several places in the program. When I translated the new stack-to-register tests to equivalent X/Y stack registers tests, the program worked. I would like to use the new WP34S features. My hope is that the WP34S program in question can make it to the web-based HP Solve newsletter. Namir
Edited: 5 Aug 2012, 6:10 p.m.
Re: Bug in WP34S? - Paul Dale - 08-05-2012 Any chance of an example of this failure? I've tried a few simple tests and there doesn't seem to be anything wrong. Fro example:
Reg Value x[<=]->22 gives true. Change X to 66 and repeat gives false.
Re: Bug in WP34S? - Paul Dale - 08-05-2012 I don't think you need the indirection. The code should be:
RCL 11 The conditional is looking into the register already. Adding indirection takes it to a completely different register based on the contents of register 22.
Re: Bug in WP34S? - Namir - 08-05-2012 OK, I found what I was doing wrong. After I select a test, I need to click the ENTER key and then enter the register number. I was clicking the right-pointing arrow key on the top row and then entering a register number. Bad move! Sorry for the false alarm. I am going back to my code and edit it to correctly use this feature. Merci!!!
Namir
|