I had a fun discussion on 6502 code optimization, for a port of Elevator Action.
Basically, you have to look at loops in a different way, because a lot of things that are practically "for free" even on slightly more modern CPUs just ... aren't ... on a 6502.
Like, the intuitive idea of incrementing an address while looping. No, it's actually faster to keep X or Y index constant and precalculate different offsets. Weird.
https://www.lemon64.com/forum/viewtopic.php?t=83093&start=270
[#]Retrocomputing #6502 #C64
=> More informations about this toot | View the thread | More toots from isaackuo@spacey.space
=> View retrocomputing tag | View c64 tag This content has been proxied by September (3851b).Proxy Information
text/gemini