Toddy Forth - a new ZX81 forth implementation

Discussion about ZX80 / ZX81 Software
User avatar
kmurta
Posts: 302
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Toddy Forth - a new ZX81 forth implementation

Post by kmurta »

I introduce here my last project, a DTC forth implementation to the ZX81. Enjoy! ;)

http://zx81.eu5.org/toddysofte.html#Toddy_Forth
Last edited by kmurta on Sat Jan 08, 2011 2:09 pm, edited 1 time in total.
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
User avatar
kmurta
Posts: 302
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by kmurta »

1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by RWAP »

You have some really interesting software on that page - can you please provide permission for me to include your software and details on my own website - http://www.rwapsoftware.co.uk/zx81/zx81_software.html

I will need to know which of the software has your own copyright, as I will not offer the copyright software (such as Quicksilva titles and magazine titles) for download unless their permission has been obtained, although I can of course list them and offer a link to your site :-)
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Toddy Forth - a new ZX81 forth implementation

Post by Moggy »

kmurta wrote:I introduce here my last project, a DTC forth implementation to the ZX81. Enjoy! ;)

http://zx81.eu5.org/toddysoft.html#Toddy_Forth
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
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Toddy Forth - a new ZX81 forth implementation

Post by XavSnap »

Hi,
No way on Vb81 XuR !!! ( lol ... french Forth is better... )
Perhaps on the sZ81 emulator.(wrx+zonx)
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
kmurta
Posts: 302
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by kmurta »

RWAP wrote:You have some really interesting software on that page - can you please provide permission for me to include your software and details on my own website - http://www.rwapsoftware.co.uk/zx81/zx81_software.html
Of course, you has my permission.
RWAP wrote:I will need to know which of the software has your own copyright, as I will not offer the copyright software (such as Quicksilva titles and magazine titles) for download unless their permission has been obtained, although I can of course list them and offer a link to your site :-)
The programs that I developed and now are public domain:

ZX81 Toddy Forth
ZX81 Dancing Demon
Pink Panther
Micro Sistemas Forth V2.0
ZX81 Music Interpreter
Cartoons
Clock
HRPICTURES

Regards,
Kelly Murta
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
User avatar
kmurta
Posts: 302
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by kmurta »

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

Code: Select all

HEX 1E 461C C! COLD
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:

Image Image Image

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:
tfvb81xur.jpeg
(24.79 KiB) Downloaded 5100 times
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by RWAP »

Could you upload the version which works with the standard ZX81 onto your website as well - that would make it easier for everyone :-)
User avatar
kmurta
Posts: 302
Joined: Tue Sep 01, 2009 5:04 am
Location: Belo Horizonte - BR
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by kmurta »

RWAP wrote:Could you upload the version which works with the standard ZX81 onto your website as well - that would make it easier for everyone :-)
Ok, it's done!

http://zx81.eu5.org/files/soft/toddy/tforth.zip

I includes the file tforth10-std.p for standard zx81.
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81
http://zx81.eu5.org
https://toddysoftware.itch.io/
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Toddy Forth - a new ZX81 forth implementation

Post by RWAP »

I can see that I need to update the page on the forums listing all the programs which use hi-res graphics

Can you clarify which scheme your software adaptations support please - see the definitions at the start of that topic.
Post Reply