How to program an NES game in C
IMHO a 6502 is too limited to be effectively programmed in C; even this part of the article gives all the limitations: <a href="https://nesdoug.com/2015/11/15/2-how-cc65-works/" rel="nofollow">https://nesdoug.com/2015/11/15/2-how-cc65-works/</a><p>With this important note: "clean unaltered C code will compile into very slow code that takes up too much of the limited memory space."<p>In other words, "C" written for such a CPU will be in a vastly different style from more "normal" C, so that it might be better to just use Asm.<p>Then again, 8051s, PICs, and other extremely constrained MCUs have been targeted by "C" (subsets), so it's definitely possible if a bit awkward. Personally, I think something like an 8080 would be the minimum to do relatively comfortable C programming in, with a Z80 being far more preferable.