Anne Strunck

BCD Mulitplication 8Bit BCD * 20Bit BCD

Discussion created by Anne Strunck on Feb 13, 2009
Latest reply on Feb 16, 2009 by Anne Strunck
Hello,

I have to create a subroutine, which multiply 8Bit packed BCD(2 Digits)  with 20Bit packed BCD. (5 Digits). I don't know, which is the best possibility for code optimisation and speed optimisation. (...let say the best of all possibilities...)
Ok, on the one hand you could make a multiplication table of 81 - 100 Bytes. But this will take a lot of space in ROM.
Is there a fast and short algorithm for the HCS08?

Thank you for your help,

best regards
zenta



Message Edited by zenta on 2009-02-13 11:06 AM

Outcomes