What’s the Best Way to Program for 6502 Machines: C, Assembly, or BASIC?

0
9
Asked By RetroGamer42 On

Hey everyone! I'm new here, so I hope I'm posting this in the right place. I'm really into retro computers that use the 6502 processor, like the NES, C64, and Apple II/II+. I'm curious about the best programming approach for creating applications or games for these systems using modern computers. I know assembly is lower-level and super fast, but it feels pretty daunting for someone with only basic programming experience. I've also been looking into C, especially with compilers like cc65, but I've heard mixed reviews about performance and bugs. Then there's the option of programming in the specific version of BASIC for each machine. So, what do you think is the best route for someone like me who wants to get started with development but lacks experience in either old or new programming languages? I'm leaning towards using a C compiler, but I'd love to hear your thoughts!

1 Answer

Answered By TechSavvy101 On

It's a bit more complicated than it seems. Even though they all use the 6502 CPU, those systems are quite different and incompatible with each other. I'd recommend using emulators for the specific systems you want to work with and coding in their native language. For instance, use Commodore BASIC for the C64, Applesoft BASIC for the Apple II, etc. Just a heads-up, the versions of BASIC are not the same across machines, meaning you can't use C64 BASIC to program for an Apple II. Even with assembly, each system has different quirks despite using the same CPU. It might be best to learn the BASIC variant for the specific machine you’re interested in.

NewbieCoder88 -

Thanks for the insight! I thought a C compiler like cc65 would compile C to assembly for whichever system I pick, but it sounds like you're saying I might be better off just learning the BASIC for each specific computer, right? I appreciate your help!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.