Re: 68K/68332 Assembly/Binary Problem
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 30 Mar 2007 21:02:54 +0300
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./.
.
- Follow-Ups:
- Re: 68K/68332 Assembly/Binary Problem
- From: kevinor
- Re: 68K/68332 Assembly/Binary Problem
- References:
- 68K/68332 Assembly/Binary Problem
- From: kevinor
- 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):
Relevant Pages
|