Bug in WP34S?
#1

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

#2

Hi Namir,

Please be a little bit more specific: What exactly did you try which doesn't work as expected?

TIA

#3

Walter,

Here is an example. The 41-style code that works is:

RCL 22
RCL 11
x<=? Y
GTO 15
...

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
x<=?-> 22
GTO 15
...

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
x<=?-> 11
GTO 15
...

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.

#4

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
22 16
16 44
X 35

x[<=]->22 gives true.

Change X to 66 and repeat gives false.


All indirection is handled in a single place in the code, a bug here will manifest in other indirections in all likelihood. So I'd rather like to get this fixed.


- Pauli

#5

I don't think you need the indirection. The code should be:

RCL 11
x[<=]? 22
GTO 15

The conditional is looking into the register already. Adding indirection takes it to a completely different register based on the contents of register 22.


- Pauli

#6

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



Possibly Related Threads…
Thread Author Replies Views Last Post
  wp34s binomial bug Andrew Nikitin 4 1,762 09-22-2013, 05:20 PM
Last Post: Paul Dale
  Expon bug in wp34s Andrew Nikitin 7 2,180 07-14-2013, 03:23 AM
Last Post: Marcus von Cube, Germany
  another wp34s bug Andrew Nikitin 8 2,433 06-26-2013, 01:01 AM
Last Post: Paul Dale
  weird statistics bug in wp34s Andrew Nikitin 5 2,072 06-20-2013, 01:54 PM
Last Post: Namir
  [WP34S] A funny bug in Pi (prod) Eduardo Duenez 3 1,386 01-28-2013, 03:41 AM
Last Post: Walter B
  [WP34s] Bug or feature? Dieter 25 6,385 01-03-2013, 06:20 PM
Last Post: Paul Dale
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 1,176 10-04-2012, 04:59 PM
Last Post: Paul Dale
  [WP34S] Curious Bug in Inverse Normal Function Les Wright 61 12,108 05-01-2012, 02:44 AM
Last Post: Paul Dale
  WP34s: Complex AGM (Bug...) Eduardo Duenez 33 7,243 04-23-2012, 05:59 PM
Last Post: Paul Dale
  WP34S: Fractions (Bug?) Eduardo Duenez 1 901 04-22-2012, 08:42 PM
Last Post: Paul Dale

Forum Jump: