div by 10 on Z80
hilpert at cs.ubc.ca
Wed Jan 23 12:58:08 CST 2008
Chuck Guzis wrote:
> By now, we've probably bored the hardware guys to tears and DEC
> people are tearing out their hair, so we should probably drop the
> My apologies, but I've always found bit-twiddling fun. It seems that
> every platform has some peculiar characteristic that can be exploited
> to good advantage.
I'm still following this and watching the improvements. (I'm still
looking at what docs I have here to ascertain exactly which way the Z80 vs 6800
borrow works, but some of it's ambiguous (just for my own sake, I still do some
assembler for both of them on occasion)).
Of course, from a clarity-is-all-important modern software design perspective,
we should all be shot.
If I were an economist, I would predict that at this rate, in another few weeks
the routine will be down to 1 byte.
More information about the cctech