Fermer2
CosmicRLe 17/08/2023 à 23:04
I need to do division with fixed point. The Dev Kit has a lot of fixed point functions but there is no division function. It says the 68000 is too limited to include one!

But what if I need to calculate the gradient of a slope and get a fractional answer? Is there a way I can do this? Or maybe there is a faster way to find the gradient without division?

I am using C for this part of my program although I could write a function in assembler. My C and assembler knowledge is fairly basic. I've never used fixed point numbers before

Thank you for any help