Jump to content

16 bit signed multiply for 6502?


2 replies to this topic

#1  

    River Patroller

  • 4,633 posts
  • Joined: 24-April 03

Posted Mon Jan 4, 2010 8:35 PM

Any one have a decent efficient 6502 alg for 16 bit signed multiplies?
Thanks.

#2  

    7800 Developer

  • 5,432 posts
  • Joined: 20-November 08
  • Busy bee!
  • Location:North, England

Posted Tue Jan 5, 2010 5:57 AM

View PostGorf, on Mon Jan 4, 2010 8:35 PM, said:

Any one have a decent efficient 6502 alg for 16 bit signed multiplies?

Discussion about 6502 multiplication here :-

http://www.atariage....multiplication/

If you can find a copy of "Best of PCW Assembler Routines for the 6502" by David Barrow there is a 16x16 unsigned routine in there. You'd need to convert your input values to unsigned first. If you can't find the source code for the book online (its from 1985) I'll type it in.

#3  

    River Patroller

  • 4,633 posts
  • Joined: 24-April 03

Posted Wed Jan 6, 2010 11:28 AM

View PostGroovyBee, on Tue Jan 5, 2010 5:57 AM, said:

View PostGorf, on Mon Jan 4, 2010 8:35 PM, said:

Any one have a decent efficient 6502 alg for 16 bit signed multiplies?

Discussion about 6502 multiplication here :-

http://www.atariage....multiplication/

If you can find a copy of "Best of PCW Assembler Routines for the 6502" by David Barrow there is a 16x16 unsigned routine in there. You'd need to convert your input values to unsigned first. If you can't find the source code for the book online (its from 1985) I'll type it in.

Turns out I dont need it..I found another way to handle the sign but thanks for the link. :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users