5 ms·
What are some languages (other than its own instructions) that 6502 is friendly to?
by wwweston 7y ago
What are some languages (other than its own instructions) that 6502 is friendly to?
- pvg 7y agoBASIC, arguably. People often say C is 'high level assembly' but in some ways BASIC is closer with the absence of block structure, scopes, etc. Control flow in a BASIC (basic BASIC, not fancy newer BASIC) program ends up looking a lot like that in an assembly one.
- int_19h 7y agoGiven that all that high-level control flow is rewritten into gotos anyway, why would that make a difference in general, or specifically for 6502?
- Tuna-Fish 7y agoAll high-level control flow is very definitely not rewritten into gotos. Almost all cpus have some form of function call instruction, and c functions are implemented by using it. Without such an instruction, or even a fast way to model it, C becomes much less efficient to implement.
- int_19h 7y agoOP was talking about block structure, not subprograms. In any case, BASIC has them.
- wk_end 7y agoFORTH was pretty widely used on 6502-based machines.