You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 18I think most machines didn’t translate BASIC to assembly; they just interpreted it.Tommy– Tommy2022-03-29 22:54:49 +00:00Commented Mar 29, 2022 at 22:54
- 18The premise is false. BASIC on most micros was not compiled, and therefore there is no 'machine code' (nor 'assembly code') to save. Turning an intepretive system into a compiler system is not a 'small modification;'.dave– dave2022-03-30 02:36:59 +00:00Commented Mar 30, 2022 at 2:36
- 4If it was possible to intercept and send the machine-code being sent to the CPU, -- Why do that? The "machine code being sent to the CPU" is the code of the BASIC interrpreter, which you already have in the ROM.dave– dave2022-03-30 02:39:27 +00:00Commented Mar 30, 2022 at 2:39
- No, on several levels. It would require that the home computer would in addition to Basic interpreter, also to have a Basic compiler.Justme– Justme2022-03-30 11:12:36 +00:00Commented Mar 30, 2022 at 11:12
- The line between interpretation and compilation is blurry. For Basic on an 8-bit micro, the native arithmetic (8-bit integer) doesn't match the language's arithmetic (floating point), so machine code would be either impossibly complicated or a series of library function calls with few other instructions. ECD Basic compiled to "threaded code", which was essentially just addresses of operators. A tiny "interpreter" picked these up and branched to them in sequence (more efficient than subroutine linkage). The threaded code was effectively the machine language of a virtual machine.John Doty– John Doty2022-03-30 16:37:33 +00:00Commented Mar 30, 2022 at 16:37
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. ms-dos), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you