News Score: Score the News, Sort the News, Rewrite the Headlines

Optimizing a 6502 image decoder – part II: assembly

In the first part of this article, I focused on the algorithm itself, removing parts I wouldn’t use (like color), making it simpler, less loopy, etc. This yielded a ten-times improvement on a modern architecture, but would still be very slow if simply translated to assembly by a compiler like cc65. In this part, I’ll focus on things one can do to get “speed” out of a 1MHz 8-bits processor. It will include a number of “tricks”, some of them being largely accepted as “good code” – like predictive ...

Read more at colino.net

© News Score  score the news, sort the news, rewrite the headlines