This is a Native code compiler for 9900 modeled on machine Forth by Charles Moore with many liberties taken to accommodate the TMS9900 CPU.
- Most Forth primitives are inlined due to the bulky sub-routine overhead of the TMS9900. Stacks are emulated with normal registers.
- Top of stack is cached in Register 4 for a speed improvement on most ords.
- Tail-call optimization is implemented with -; operator replacing ; This is used manually by the programmer. No error detection for misplacement at this time.
This is the first commit of a work in progress. Documentation is to follow.
Fixed NEW. directive bug Added CODE ENDCODE to make ASM words look like regular Forth Assembler Added new syntax to force symbolic addressing mode for fetching and storing. This lets the programmer improve size and speed significantly over pure stack operations.
- R11 is now the top of return stack cache register
- R9 is the for next loop index register. 'i' is used to get the loop index in your programs