The JAF instruction is the most important instruction in the whole machine. It is what makes it Turing complete. Unfortunately it is also currently spec'd at 2 operands which makes the implementation much more difficult.
I've been mulling over replacing JAF with a set of conditional jump instructions:
JEQ a==b
JEZ a==0
JMP (unconditional)
These 3 should be hardware efficient while allowing efficient implementations of the two most common loops I expect to see:
Searching for tokens, and for loops.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.