Moggy wrote:
Hi Kmurta many thanks for this as I am really into forth can You confirm this is emulator only or can it be ported onto a real ZX81?
Regards Moggy
Toddy Forth was developed with the purpose of creating programs for use on my TK85, adapted with characters board mapped at address 3000h and ZON-X compatible sound board. But it can be used in a standard ZX81 too, just disable the UDG's with
and save it with CSAVE.
Indeed, 4 programs supplied with Toddy Forth was compiled for use in a standard ZX81:
HANOI.P / BREAKOUT-STD.P / MANCALA.P / PLOT-TEST.P
The forth programs can be written in a plain text file (see examples at
Progs directory) and loaded in Eightyone emulator to be compiled:
The display file is fixed in memory at address 4092h (first screen position) and the forth system variables are:
Code: Select all
43AB S0: Base value of the parameter stack
43AD R0: Base value of the return stack
43AF RSP: Return Stack Pointer
43B1 TIB: Terminal Input Buffer
43B3 LBP: Line Buffer Pointer
43B5 STATE: Contain the compilation state
43B7 BASE: Current number base, used for input and output conversion
43B9 HLD: Holds the address of the last character during numeric output conversion
43BB CUR_POS: Position of cursor on the screen
43BD DP: Dictionary Pointer
43BF CONTEXT: A pointer to the vocabulary within which dictionary searches will first begin
43C1 CURRENT: A pointer to the vocabulary where new definitions are created
43C3 LAST: Last word defined in CURRENT vocabulary
More informations at source files.
At last, a note about the programs saved with CSAVE: the Eightyone has a bug at LOAD patch so EO resets after load the program. To deal with it, are two options: 1- use the EO V0.43C that works fine with CSAVE or 2- add a zero byte at end of the p file, with a hex editor (I have chosen the second option).
XavSnap wrote:Hi,
No way on Vb81 XuR !!! ( lol ... french Forth is better... )
Perhaps on the sZ81 emulator.(wrx+zonx)
It works for me in Vb81 XuR: