68K/68332 Assembly/Binary Problem



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?

Thanks.

.



Relevant Pages

  • Re: 68K/68332 Assembly/Binary Problem
    ... operations and conversions with numbers in Hex, ... 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 ...
    (alt.lang.asm)
  • Re: 68K/68332 Assembly/Binary Problem
    ... however the CPU commands are limited to mainly 32-bit values. ... manually coding division and multiplication subroutines but after ... Denis' LibTom project, LibTomMath, in its 'Tiny' variant? ... Or any other fixed precision or arbitrary precision maths library ...
    (alt.lang.asm)
  • Re: floating-point arithmetics
    ... > simply would like to know what options or commands to use when I ... > For example how would I make the area calculator below work? ... > return $res ... echo "$res" ...
    (comp.unix.shell)
  • Re: Symbolic Calculator for Mobile Devices
    ... use one of the CAS-capable pocket calculators, ... Using Jasymca you don't need to learn many new commands. ... calculator ...
    (sci.math.symbolic)
  • Re: Is it a bug or my misunderstanding?
    ... while the calculator is in exact mode. ... "Exact" mode primarily affects the original interpretation ... Some commands, particularly those which existed before any CAS, ...
    (comp.sys.hp48)