@AskChip There are C compilers that can target the 6502 / 6510 CPU. I doubt you'd have too much trouble porting it. It would be a challenge to be sure, but not impossible.
@profoundlynerdy That it can be done is a certainty. Maybe you can automate the tedious parts, maybe not.
@profoundlynerdy Might have a bit of trouble rewriting the entire thing for 8 bit.