How to implement IEEE754 floating point separation in 68k assembly or in general?

I need to create a floating point implementation for a 68k processor in IEEE754 format, and I figured out how to do all the other basic operations (decimal, addition, subtraction, multiplication), but I can't figure out how to do the separation. In my opinion, you should split the mantissa and then subtract the exponents. However, if you split the mantissas, you will get ANOTHER floating point, and this is definitely not what I want and cannot use (since the only split function provided by the 68k processor shows the result of integer division and the remainder of the module response).

Can someone provide an example of how to make such a separation on the processor of 68 thousand, or in general with my limitations?

+3
source share
1 answer

Here you can find the exact algorithms and explanations for the IEEE 754 floating point math ...

  • fl oat to integer conversion
  • integer conversion fl oat
  • normalize
  • add / subtract
  • multiply charged
  • divide

    ... unfortunately not for the 68k CPU, however, the algorithms are the same.

Here you have a block diagram for 24-bit FP splitting a = a / b:

enter image description here

+3
source

All Articles