Remix.run Logo
abecedarius 4 days ago

One of the great things about it was, it came with an assembler vocabulary to code your inner loops or other lowest-level stuff in. I gather BBC Basic had something like that, but I never saw and and I did get to use Forth in this way back in the day. Most of those systems made it harder to flexibly mix the higher and lower-level coding.

veltas 4 days ago | parent [-]

This is much like C. The easiest way to use assembly in C or Forth is to know your 'ABI' and write separate assembly code functions where needed. In Forth at least you can write a CODE word.

abecedarius 4 days ago | parent [-]

Yes, though:

- high-level Forth also amounts to a Turing-complete macro assembler (much better than textual macros)

- C was less practical/available on early personal computers, especially for coding right on the target system. When I was doing this it was on a TI 99/4A in the early 80s.