The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

WP 34S bitwise logical operations bug?
Message #1 Posted by Nigel J Dowrick on 3 Feb 2012, 2:55 p.m.

I'm running build 2356 on my (ex-!)HP-30b. When I do yellow-shift-+/- (i.e., entering binary mode), "2c64" appears on the top line and "b" appears in the exponent. So far, so good.

Now, I enter 1010 and press ENTER, twice. I then do green-shift-7 - i.e., AND. I get a binary integer with 64 1s in it! I had expected to get 1010.

Digging out my HP-20b, still running a late version 2 build, I find that I do get 1010 as the result.

A little more experimentation reveals that in version 3, 0 AND 0 is 1 (other arguments giving correct answers). OR has the same problem, and XOR doesn't work either!

Is this a bug? Or have I inadvertently selected some special "give wrong answers" mode setting?

Nigel (UK)

      
Re: WP 34S bitwise logical operations bug?
Message #2 Posted by Marcus von Cube, Germany on 3 Feb 2012, 6:06 p.m.,
in response to message #1 by Nigel J Dowrick

Bad bug :-(

I have no idea where this crept in. I'm not aware of having changed anything in this area except the register access (which might well be the culprit.)

Edit: Fixed. It wasn't the register access. :-)

Edited: 3 Feb 2012, 6:36 p.m.

      
Re: WP 34S bitwise logical operations bug?
Message #3 Posted by Paul Dale on 3 Feb 2012, 6:25 p.m.,
in response to message #1 by Nigel J Dowrick

Was a bug. Fixed now and will be available in the next build. Part of the flash recovery space saving measures gone awry.

- Pauli

            
Re: WP 34S bitwise logical operations bug?
Message #4 Posted by Marcus von Cube, Germany on 3 Feb 2012, 6:35 p.m.,
in response to message #3 by Paul Dale

I had just fixed it but my commit failed because of your fix. :-) It's built now.

                  
Re: WP 34S bitwise logical operations bug?
Message #5 Posted by Nigel J Dowrick on 4 Feb 2012, 6:43 p.m.,
in response to message #4 by Marcus von Cube, Germany

Thanks for fixing this - and for the whole project, which continues to be amazing! I haven't enjoyed myself so much for years!

Nigel (UK)


[ Return to Index | Top of Index ]

Go back to the main exhibit hall