assembly multiplication

rjenkins

Joined Nov 6, 2005
1,013
Convert to floating point
Eh? Floating point math is then far more complex than the original fixed point..

Have a look at these links for some examples of coding integer math routines.
http://www.sxlist.com/techref/microchip/math/32bmath-ph.htm
http://www.piclist.com/techref/microchip/math/index.htm

Multiplication is a basically a shift-and-add sequence, division is a shift-and-subtract-if-you-can sequence.

Start off with writing 32 bit add & subtract, using two 16 bit operations with carry/borrow between the stages then work up from that.
 
Top