NewsProductsSprinterSupportDownloadSprinter ForumAbout usLinksSite map Russian site

English
   >> Software programming for the computer Sprinter
Thread views: 537 View all threadsNext thread*Threaded Mode

Pages in this thread: 1 | 2 | (show all)
Alex_GoryachevAdministrator
(Sprinter Team)
2002/07/01 20:52
Sprinter CamelForth Reply to this post

Sprinter CamelForth v4.00 by Garry Lancaster is available at www.petersplus.com/sprinter/software/camel400.zip
It's a very nice version of Forth! IMHO, it is a real alternative for Assembler on Sprinter computer. I hope, Garry Lancaster will can to answer our questions.
At first, how to make Sprinter EXE program by Sprinter CamelForth?

---
PETERS PLUS LTD

garrylancaster
(stranger )
2002/07/02 03:16
Re: Sprinter CamelForth new [re: Alex_Goryachev]Reply to this post

At the moment you can't make an EXE program with CamelForth (as I didn't have enough knowledge of the primary loader process). However, now I do and I will add this facility very soon.

Thanks,

Garry

--
Garry Lancaster
http://www.z88forever.org.uk/zxplus3e/
http://www.z88forever.org.uk/

Alex_GoryachevAdministrator
(Sprinter Team)
2002/07/02 09:26
Re: Sprinter CamelForth new [re: garrylancaster]Reply to this post

And another question. Do you know any variant of CemelForth for MS-DOS, which you can recommend? Usage of PC Camel Forth can be a good way in some case, when Sprinter not available.

---
PETERS PLUS LTD

garrylancaster
(stranger )
2002/07/02 14:12
Re: Sprinter CamelForth new [re: Alex_Goryachev]Reply to this post

There is no version of CamelForth for the PC (in fact, only the Z88 version of CamelForth that I produced is similar to the Sprinter version).

However, as CamelForth is ANS-compliant, you can use another ANS Forth and write programs using many of the features of Sprinter CamelForth (except specific things like multitasking, windowing, fast code etc).

I would recommend gForth, which I use. It runs on DOS, Linux, Win32, OS/2 etc. You can get it from:

http://www.complang.tuwien.ac.at/forth/gforth/

Garry

--
Garry Lancaster
http://www.z88forever.org.uk/zxplus3e/
http://www.z88forever.org.uk/

Alex_Hot
(stranger )
2002/07/03 10:32
Re: Sprinter CamelForth new [re: garrylancaster]Reply to this post

What you can say about PC version of Camel Forth, which I found at
ftp://ftp.zetetics.com/pub/forth/camel/cam86-10.zip



Alex_Hot
(stranger )
2002/07/03 10:39
Re: Sprinter CamelForth new [re: garrylancaster]Reply to this post

Can you show an example of usage the internal assembler, for example for definition any Sprinter BIOS function?



garrylancaster
(stranger )
2002/07/03 21:39
Re: Sprinter CamelForth new [re: Alex_Hot]Reply to this post

This PC version looks like it is a version of the original CamelForth, before I significantly extended it (only Z88 and Sprinter have the extended versions).

So, yes it has all the core words as Sprinter CamelForth. But it doesn't have any file or block handling, exception-handling, wordlists/vocabularies, etc.

gForth does have all these, so I would recommend it. PC CamelForth would not really be very useful.

Garry

--
Garry Lancaster
http://www.z88forever.org.uk/zxplus3e/
http://www.z88forever.org.uk/

Edited by garrylancaster on 2002/07/03 21:41.



garrylancaster
(stranger )
2002/07/03 21:53
Attachment
Re: Sprinter CamelForth new [re: Alex_Hot]Reply to this post

Unfortunately there isn't an assembler at the moment, so it is necessary to hand-assemble CODE words. If anyone can provide a Z80 assembler for ANS Forth, it would be gratefully received!

An example of writing a CODE word to perform a DSS call is attached, and will also be in the next release (v4.01). Writing a BIOS call word will work in the same way.

The main things to remember are:

1. Start with CODE <name> and end with NEXT
2. Always preserve DE IX IY registers (DSS/BIOS calls may corrupt them)
3. BC contains top stack item; the rest of the stack is the normal machine stack, and accessed with PUSH/POP.

Garry

--
Garry Lancaster
http://www.z88forever.org.uk/zxplus3e/
http://www.z88forever.org.uk/

Alex_GoryachevAdministrator
(Sprinter Team)
2002/07/04 13:53
News in CamelForth v4.01 new [re: garrylancaster]Reply to this post

CamelForth v4.01 is available now.

News:

1. SAVE-EXE word for creating EXE applications. There are details in
saveexe.txt, and examples in hextodec.fth & copy.fth.

2. Words for accessing Sprinter directories and disks. There are details
in dirs.txt.

3. An example of creating a CODE word accessing a DSS function is now
available, in bootdsk.fth.

4. Some minor documentation updates.


---
PETERS PLUS LTD

Alex_Hot
(stranger )
2002/07/04 20:54
Re: Sprinter CamelForth new [re: garrylancaster]Reply to this post

Thank you! Yes, GForth is more powerfull... And more comfortable, BTW. I say about SEE word, for example... I examined this word, but it was too deep for analysis. :(
Do you plan to define this word in Sprinter CamelForth?
BTW I found CamelForth Glossary at the your webpage but I can't download files, which contain it! Can you post Glossary in this forum?




Pages in this thread: 1 | 2 | (show all)
View all threadsNext thread*Threaded Mode
Jump to