Toot

Written by Isaac Ji Kuo on 2024-11-20 at 13:50

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

Mentions

Tags

=> View retrocomputing tag | View c64 tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113515603995332294
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.501744 milliseconds
Gemini-to-HTML Time
0.405344 milliseconds

This content has been proxied by September (3851b).