Re: 68K/68332 Assembly/Binary Problem



kevinor@xxxxxxxxx writes:
Hey all,

I'm in need of some help with a project I'm currently working on.

It's a calculator that runs on an MC68332 processor and performs
operations and conversions with numbers in Hex, Decimal and Binary.

The problem I'm having is with the limitations of the CPUs arithmetic
commands; the program needs to work with 64-bit signed integers
however the CPU commands are limited to mainly 32-bit values.

Is there a way to convert decimal to binary/hex and back without
needing large division and multiplication commands? I've considered
manually coding division and multiplication subroutines but after
designing a multiplication algorithm which takes way too many clock
cycles; is there another way to proceed?

Have you tried something that's already been written, like Tom St.
Denis' LibTom project, LibTomMath, in its 'Tiny' variant?

Or any other fixed precision or arbitrary precision maths library
(most of which would be overkill).

Phil
--
"Home taping is killing big business profits. We left this side blank
so you can help." -- Dead Kennedys, written upon the B-side of tapes of
/In God We Trust, Inc./.
.



Relevant Pages

  • Re: 68K/68332 Assembly/Binary Problem
    ... operations and conversions with numbers in Hex, ... however the CPU commands are limited to mainly 32-bit values. ... Denis' LibTom project, LibTomMath, in its 'Tiny' variant? ... Or any other fixed precision or arbitrary precision maths library ...
    (alt.lang.asm)
  • 68K/68332 Assembly/Binary Problem
    ... It's a calculator that runs on an MC68332 processor and performs ... however the CPU commands are limited to mainly 32-bit values. ... Is there a way to convert decimal to binary/hex and back without ... manually coding division and multiplication subroutines but after ...
    (alt.lang.asm)