this post was submitted on 26 Jul 2024
274 points (95.4% liked)

Programmer Humor

32022 readers
544 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

What does your sleep paralysis demon ask you?

you are viewing a single comment's thread
view the rest of the comments
[–] mindbleach@sh.itjust.works 1 points 1 month ago

I can and have, and it's still a tremendous pain in the ass to launder the addresses for labels. The hottest loop in the game draws an arbitrary span of the same tile. It should be trivial to do a jump table - to grab an address from an array and go there. 13 tiles? goto jump[13]. (Or really some stack / return shenanigans, because the 6502 is odd.) But if there's any way to get cc65 to shove the location of an instruction into an array, I haven't found it.