Hacker News new | ask | show | jobs
by kabdib 4556 days ago
Yup, MOVEM was pretty neat on the 68K. For the Atari ST I wrote a very fast memory-fill using a tower of MOVEM instructions; you could get to within a percent or so of the system memory bandwidth, and you might as well stop trying at that point.

(Also had to deal with some other company's programmers who thought their way to fill memory -- with an overlapping memory copy -- was more clever. But theirs was five orders of magnitude slower).

It's interesting that Atkinson's code doesn't unroll the MOVEM loop at all. He could have gotten another couple percent of loop overhead out of it :-)