←back to thread

265 points colejohnson66 | 1 comments | | HN request time: 0.42s | source
Show context
nicetryguy ◴[] No.44424854[source]
I don't always make 6502(ish) errors, but when i do, it's usually the memory address instead of the immediate! It's a very common and easy mistake to make, and i believe Chuck Peddle himself deeply regretted the (number symbol, pound sign, hashtag) #$1234 syntax for immediate values. I made # appear bright red in my IDE, it helps, a bit... Even the ASM gods at Rare fell victim to the same issue!
replies(2): >>44425109 #>>44430345 #
1. Dwedit ◴[] No.44430345[source]
Instructions sets like ARM basically made it impossible to make that mistake. You need to use a different instructions when you involve memory.