W65C816SXB ANS-Forth
Posted: Tue Apr 19, 2016 10:46 pm
I've been cleaning up my 65C816 forth for the W65C816SXB so that it can be used. Its not perfect yet but the bulk of it does work. All of the code can be found here:
https://github.com/andrew-jacobs/w65c816sxb-forth
This is a direct threaded implementation which executes in native mode with A, X and Y normally set to 16-bits. A is switched to 8-bits for C@, C! and C,. The forth instruction pointer is kept in Y and the dispatch code (TYX,INY,INY,JMP (0,X)) is inlined through out the code by means of the CONTINUE macro. The direct page register is used as the data stack pointer.
I have a version of the project for the W65C265SXB as well and will upload it tomorrow.
Portions of the code have been translated from Brad's Camel forth implementations for the Z80 and 1802.
I'll continue to add documentation and fix bugs as I find them.
https://github.com/andrew-jacobs/w65c816sxb-forth
This is a direct threaded implementation which executes in native mode with A, X and Y normally set to 16-bits. A is switched to 8-bits for C@, C! and C,. The forth instruction pointer is kept in Y and the dispatch code (TYX,INY,INY,JMP (0,X)) is inlined through out the code by means of the CONTINUE macro. The direct page register is used as the data stack pointer.
I have a version of the project for the W65C265SXB as well and will upload it tomorrow.
Portions of the code have been translated from Brad's Camel forth implementations for the Z80 and 1802.
I'll continue to add documentation and fix bugs as I find them.