Search found 4 matches

by WynnSmith
Wed Feb 28, 2024 7:17 pm
Forum: Programming
Topic: Old Guy with Special Case Need to Divide by Three
Replies: 43
Views: 20238

Re: Old Guy with Special Case Need to Divide by Three

Your input here is more than I could ask for. A 'Thank you' seems inadequate. Nevertheless, thank you.
by WynnSmith
Tue Feb 27, 2024 12:26 am
Forum: Programming
Topic: Old Guy with Special Case Need to Divide by Three
Replies: 43
Views: 20238

Re: Old Guy with Special Case Need to Divide by Three

Bill, Yes. We could call the general math library, but speed is the reason to investigate a special case algorithm.

P.S. good catch. Need a BEQ.
by WynnSmith
Tue Feb 27, 2024 12:12 am
Forum: Programming
Topic: Old Guy with Special Case Need to Divide by Three
Replies: 43
Views: 20238

Re: Old Guy with Special Case Need to Divide by Three

wow. Hey! What a great forum. Thank you all for your responses. I'm still working to digest some of it, but wanted to get back quickly and say thanks.

I should've mentioned my dividends are always multiples of 3, so there's no need to accomodate remainders or calculate/lookup non-multiples. To ...
by WynnSmith
Sat Feb 24, 2024 10:38 pm
Forum: Programming
Topic: Old Guy with Special Case Need to Divide by Three
Replies: 43
Views: 20238

Old Guy with Special Case Need to Divide by Three

I love finding this forum. It's been 45 years since I was deep into the 6502. Now I'm out of touch with standard nomenclature and current tools. Your spit and polish is appreciated.

I have a special case need for an algorithm that quickly divides by three. The largest dividend we'll face is 765. It ...