PDA

View Full Version : Integer Math in Assembly



Chad George
11-13-2006, 06:44 AM
I'm needing some help on the best way to do integer multiplication and division in assembly
on the Propeller since it doesn't have a hardware multiplier. I was wondering if anyone had a
particularly good way to do it with the assembly instructions available on the Propeller.
16x16 multiplication is sufficient for my needs now, but if any example of how to approach 32x32 would be
appreciated as well.

Thanks,
Chad

Mike Green
11-13-2006, 07:03 AM
There's a fairly complete document with lots of other stuff, but includes several multiply and divide routines:
http://forums.parallax.com/forums/default.aspx?f=25&m=111215

Chad George
11-13-2006, 12:38 PM
Mike,

I had missed that document and it was exactly what I was looking for.
Thanks alot.

Chad