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: what about now? [ADD == --]
    ... You posted TWO programs which show COMMANDS REVERSED in one of them. ... Logic would suggest that both versions should not compile the same, ... calculator, then regardless of how the flag is set, the editor would ... and can even be used within algebraic objects, as also can -NEGin algebraics ...
    (comp.sys.hp48)
  • Re: Technology brief on extensions in MorphEngine
    ... case of one new calculator architecture, ... running on a new platform, to support some of UserRPL, ... and ENDSUB commands for DOSUBS, ... Australia would in fact be a lovely place to be right now, ...
    (comp.sys.hp48)
  • 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)