Sun Aug 5 16:34:22 EDT 2018
So this really is pretty much it. The rest is instruction decoder and
memory/stack access. Those are fairly involved by themselves but
there doesn't seem to be any magic.
E.g. a pattern sequencer needs:
- set io/o
- set loop count
- decrement and branch
This is best done using a driver application.
It might be better to implement function calls first. For the
application I don't yet need other kinds of conditional jumps, just
nested Forth for..next loops.
How to begin?
One bit in the instruction can be used for:
- if zero, pop stack and continue
- if nonzero, decrement and jump
- push number to stack