WP 34S bitwise logical operations bug?



#2

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)


#3

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.

#4

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


- Pauli


#5

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


#6

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)


Possibly Related Threads...
Thread Author Replies Views Last Post
  [WP-34S] Unfortunate key damage with update to V3 :( svisvanatha 5 903 12-10-2013, 11:37 PM
Last Post: Les Bell
  WP-34S (Emulator Program Load/Save) Barry Mead 1 506 12-09-2013, 05:29 PM
Last Post: Marcus von Cube, Germany
  DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 711 12-04-2013, 11:14 AM
Last Post: Barry Mead
  WP 34S/43 ?'s Richard Berler 3 656 11-10-2013, 02:27 AM
Last Post: Walter B
  My FrankenCulator (wp-34s) FORTIN Pascal 4 673 11-09-2013, 06:18 PM
Last Post: FORTIN Pascal
  WP 34S Owner's Handbook Walter B 5 862 11-09-2013, 05:34 PM
Last Post: Harald
  HP Prime Stack operations from within a program John Colvin 1 475 11-08-2013, 09:45 PM
Last Post: Helge Gabert
  wp 34s overlay and programming. FORTIN Pascal 6 877 11-08-2013, 01:28 PM
Last Post: Nick_S
  m.dy in display of WP-34S Harold A Climer 3 560 11-05-2013, 11:28 AM
Last Post: Andrew Nikitin
  WP 34s : An old problem coming back Miguel Toro 2 511 11-05-2013, 03:00 AM
Last Post: Marcus von Cube, Germany

Forum Jump: