Toddy Forth with ZXpand support
Posted: Sat May 11, 2013 6:52 am
This is something I should have done some time ago, but I left it in the background. So here it is, a new Toddy Forth version with ZXpand support. And now, when in FAST mode, system automatically switches to SLOW while reading the keyboard (with words KEY and INPUT) and return to FAST as soon as you hit ENTER.
New words added: (S"), S", CMOVE, SLOW, FAST, FLOAD e FSAVE. The words (.") and CSAVE are removed and ." was redefined in terms of S" and TYPE.
As ZXpand is not compatible with the redefinition of characters (UDG), this feature was removed and ASCII characters nonexistent in ZX81 were remapped as follow:
To save and load programs and files, there are the words FSAVE and FLOAD. To save a program, use the format:
wich will save the program HANOI.P in current directory (like in BASIC, the .P extension is optional). Or
to save it in the directory PROGS.
And to save a block file (an ASCII source for example) use the format:
where 32768 is the start address of block in memory and 6300 is your length.
Likewise, to load files from ZXpand, the options are:
to load the program HANOI.P from current directory, or
to load it from directory PROGS.
And
will load the file HANOI.FTH at the address 32768 and you can compile it with
I hope you enjoy and have fun!
New words added: (S"), S", CMOVE, SLOW, FAST, FLOAD e FSAVE. The words (.") and CSAVE are removed and ." was redefined in terms of S" and TYPE.
As ZXpand is not compatible with the redefinition of characters (UDG), this feature was removed and ASCII characters nonexistent in ZX81 were remapped as follow:
To save and load programs and files, there are the words FSAVE and FLOAD. To save a program, use the format:
Code: Select all
S" HANOI" FSAVE
Code: Select all
S" PROGS/HANOI" FSAVE
And to save a block file (an ASCII source for example) use the format:
Code: Select all
S" PROGS/HANOI.FTH;32768,6300" FSAVE
Likewise, to load files from ZXpand, the options are:
Code: Select all
S" HANOI" FLOAD
Code: Select all
S" PROGS/HANOI" FLOAD
And
Code: Select all
S" PROGS/HANOI.FTH;32768" FLOAD
Code: Select all
32768 LOAD
I hope you enjoy and have fun!