3 ms·
I think writing a simple basic for it would be easier. The machine has enough memory (“4096 8-bit bytes for programs and 4096 4-bit nibbles for data.”), but the
by Someone 4y ago
I think writing a simple basic for it would be easier. The machine has enough memory (“4096 8-bit bytes for programs and 4096 4-bit nibbles for data.”), but the instruction set is lacking compared to a 6502, so it would be a limited one.
I would look at Apple’s first Basic (https://en.wikipedia.org/wiki/Integer_BASIC https://en.wikipedia.org/wiki/Integer_BASIC) and trim away all but the bare essentials. Some possible simplifications:
- only support variable names of length one
- remove the exponentiation operator
- only support 8-bit integers
- only support line numbers between 0 and 255
If, then, there’s program space left, add in features.