3 ms·
BASIC, 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
by pvg 7y ago
BASIC, 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.