HP Forums

Full Version: [WP-34s] BCD Support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
QQ: is there any BCD support on the 34S?
Like swapping digits, shifting right left etc?
Haven't found that in the spec, so I assume no.
You're right, there's nothing provided beyond SDR and SDL. Maybe a nice programming exercise ...

d:-)
In real mode, you get SDL and SDR to shift one digit either way.

In integer mode, BCD isn't directly supported. At least there is no BCD arithmetic. A BCD digit shift is just a four bit shift and those are supported. There is no support for digit swapping -- why is this required/important?

It should also be straightforward to implement BCD to binary conversions as subroutines.


- Pauli
(05-22-2014 09:15 AM)Paul Dale Wrote: [ -> ]There is no support for digit swapping -- why is this required/important?
Hi Pauli, was working on this little exercise to check how the 34s would perform, see here
This little problem essentially consists in generating all permutations of 9 digits, that is 362880 possibilities.
In the absence of BCD, I've been using one register per digit, which, I think, would affect memory consumption more than actual performance.

Required: to store permutations
Important: certainly not Smile
Reference URL's