Re: 68K/68332 Assembly/Binary Problem
- From: kevinor@xxxxxxxxx
- Date: 30 Mar 2007 11:32:30 -0700
On Mar 30, 7:02 pm, Phil Carmody <thefatphil_demun...@xxxxxxxxxxx>
wrote:
kevi...@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./.- Hide quoted text -
- Show quoted text -
I've had a look through a couple including the one you've mentioned
and I'm not really any closer to a solution. They mainly deal with the
arithmetic directly; whereas I'm more concerned with Decimal
conversions to begin with. I'm pretty new to all this and I'm finding
it difficult to come up with a solution. Thanks for the reply.
.
- References:
- 68K/68332 Assembly/Binary Problem
- From: kevinor
- Re: 68K/68332 Assembly/Binary Problem
- From: Phil Carmody
- 68K/68332 Assembly/Binary Problem
- Prev by Date: Re: 68K/68332 Assembly/Binary Problem
- Next by Date: Re: 68K/68332 Assembly/Binary Problem
- Previous by thread: Re: 68K/68332 Assembly/Binary Problem
- Next by thread: Re: 68K/68332 Assembly/Binary Problem
- Index(es):