News for hackers. Stuff that matters.
Re:Apollo 11 Guidance Computer vs. USB-C Chargers by wwweston on Friday February 07, 2020 @05:06PM (#22271552)
What are some languages (other than its own instructions) that 6502 is friendly to?
Re:Apollo 11 Guidance Computer vs. USB-C Chargers by pvg on Friday February 07, 2020 @05:42PM (#22271927)
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.
Re:Apollo 11 Guidance Computer vs. USB-C Chargers by int_19h on Friday February 07, 2020 @08:58PM (#22273196)
Given that all that high-level control flow is rewritten into gotos anyway, why would that make a difference in general, or specifically for 6502?
Re:Apollo 11 Guidance Computer vs. USB-C Chargers by Tuna-Fish on Saturday February 08, 2020 @09:32AM (#22275871)
All 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.
Re:Apollo 11 Guidance Computer vs. USB-C Chargers by int_19h on Sunday February 09, 2020 @12:10AM (#22280492)
OP was talking about block structure, not subprograms. In any case, BASIC has them.
Re:Apollo 11 Guidance Computer vs. USB-C Chargers by wk_end on Friday February 07, 2020 @06:05PM (#22272119)
FORTH was pretty widely used on 6502-based machines.