3 ms·
> IMHO a 6502 is too limited to be effectively programmed in C I've had some thoughts on this before and I think it boils down to the requirements. Beyond the
by boomlinde 9y ago
> IMHO a 6502 is too limited to be effectively programmed in C
I've had some thoughts on this before and I think it boils down to the requirements. Beyond the obvious (the speed and memory requirements for your application):
If a 256 byte separate data stack is large enough, and particularly if you can put that all in zero page you can save many cycles. Then you can use the X index register as a stack pointer, benefiting from shorter and faster zero page indexed addressing for stack-relative loading and storing and using values on the stack directly for indirection using the indirect addressing modes without first copying stuff to zero page.
That's not to say that Z80 isn't a much better target for a C compiler. Among 16-bit 6800-likes, 6809 doesn't seem half bad, though.