ON 20040708@1:36:57 PM at page:
http://www.piclist.com/microchip/math/div/48by24ng.htm#38176.5108449074
James Newton[JMN-EFP-786] published post 38176.5108449074
I believe there is an error in the 24/24 non-restoring routine. The line 'btfsc Temp2, 7' after the shifts at the beginning of the loop needs to be 'btfss Dividend+5, 0' instead, like on the 24/23 version. With that change, it produced correct output for me. Tested with 0B90F0/00007D which gives 0017B0 .
Mat Nieuwenhoven
|Delete 'P-' before: '' but after: '
One more note: I referred to 24/24 above because I shortened the Dividend to 3 bytes instead of 6. I don't think the number of bits has much influence on the algorithm, though.
Mat Nieuwenhoven
|Delete 'P-' before: '' but after: '
I believe there is an error in the 24/24 non-restoring routine. The line 'btfsc Temp2, 7' after the shifts at the beginning of the loop needs to be 'btfss Dividend+5, 0' instead, like on the 24/23 version. With that change, it produced correct output for me. Tested with 0B90F0/00007D which gives 0017B0 .
Mat Nieuwenhoven
ERROR: Can't email. 553 Null recipient not accepted
ON 20040712@11:47:26 PM at page:
http://www.piclist.com/techref/microchip/math/div/48by24ng.htm#
Nikolai Golovchenko [NG--944] edited the page. Difference:
http://www.piclist.com/techref/diff.asp?url=H:\techref\microchip\math\div\48by24ng.htm&version=9
ON 20040712@11:49:37 PM at page:
http://www.piclist.com/techref/microchip/math/div/48by24ng.htm#
Nikolai Golovchenko [NG--944] edited the page. Difference:
http://www.piclist.com/techref/diff.asp?url=H:\techref\microchip\math\div\48by24ng.htm&version=10
ON 20040712@11:50:09 PM at page:
http://www.piclist.com/techref/microchip/math/div/48by24ng.htm#
Nikolai Golovchenko [NG--944] edited the page. Difference:
http://www.piclist.com/techref/diff.asp?url=H:\techref\microchip\math\div\48by24ng.htm&version=11