HP Forums
[WP-34s] BCD Support - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: [WP-34s] BCD Support (/thread-1377.html)

[WP-34s] BCD Support - Tugdual - 05-22-2014 09:06 AM

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.

RE: [WP-34s] BCD Support - walter b - 05-22-2014 09:15 AM

You're right, there's nothing provided beyond SDR and SDL. Maybe a nice programming exercise ...


RE: [WP-34s] BCD Support - Paul Dale - 05-22-2014 09:15 AM

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

RE: [WP-34s] BCD Support - Tugdual - 05-24-2014 06:44 AM

(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