Quantcast
Viewing all articles
Browse latest Browse all 2543

8-bit acorn hardware • Re: Setting a real-time clock to centi-second accuracy

I had a go at writing a straight division algorithm, and provided I can keep the dividend below 256 (2.56 seconds), it never needs to leave the accumulator. That keeps the whole thing down to about 40 bytes, which is hard to beat. Probably a bit slower than the 13 additions (actually less, because you can do some of them as part of the same four bytes) but much more comprehensible!

Statistics: Posted by Barneyntd — Sun Mar 10, 2024 10:54 am



Viewing all articles
Browse latest Browse all 2543

Trending Articles