Has anyone tried to build CamelForth from https://bitbucket.org/garryl/camelforth/src/master/ ?

158 views
Skip to first unread message

Peter Onion

unread,
Nov 13, 2025, 7:31:10 AMNov 13
to RC2014-Z80
I've built a fresh z88dk but there seems to be some mismatch between the version of z88dk needed as z80asm is complaining about command line switches like -nl .

If anyone knows how to make this work can you tell me how please ?

PeterO

Peter Onion

unread,
Nov 13, 2025, 2:59:26 PMNov 13
to RC2014-Z80
After 10 hours on this I've got it to build !  But  I still need to customise the input and output code to use my ROM routines.

PeterO

Mark Pruden

unread,
Nov 15, 2025, 6:09:47 AM (13 days ago) Nov 15
to RC2014-Z80
Hi Peter.

If you have a github account suggest raising an issue against the project documenting problem and solution. Save time for nect person, or allow maintainer to update any ? documentation.

Peter Onion

unread,
Nov 15, 2025, 6:34:12 AM (13 days ago) Nov 15
to rc201...@googlegroups.com

Yes Mark, I'll do that IF I ever get it to work.

 

Currenly it gets as far as printing the sign on message then jumps of into the wild blue younder.

 

I've made another version which uses CP/M BDOS calls for the console IO so I can debug it on my Zed Pro.  This has show a problem with the stack (no surprise there !).

 

I initialise SP to 7E00h but some how it ends up with 7F02h.  This is due to either a missing push or and extra pop, and there is a lot of both going on so it's taking time to track down the problem.

 

Wish me luck, I may be some time....

 

PeterO

 

 

------ Original Message ------
From: mark....@gmail.com
To: rc201...@googlegroups.com
Sent: Saturday, November 15th 2025, 11:09
Subject: [rc2014-z80] Re: Has anyone tried to build CamelForth from https://bitbucket.org/garryl/camelforth/src/master/ ?
Hi Peter.

 
If you have a github account suggest raising an issue against the project documenting problem and solution. Save time for nect person, or allow maintainer to update any ? documentation.

 
On Friday, November 14, 2025 at 6:59:26 AM UTC+11 Peter Onion wrote:
 

 

-- 
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unsub...@googlegroups.com">rc2014-z80+unsub...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/rc2014-z80/274eadea-1c5d-4f84-9144-ed76684fe200n%40googlegroups.com.
 

Mark Pruden

unread,
Nov 15, 2025, 7:58:06 PM (13 days ago) Nov 15
to RC2014-Z80
Just curious.

The RomWBW project has a CamelForth as part of its distribution. Is there a reason (differences) that mean you need to build it from the repository you linked in OP ?

Peter Onion

unread,
Nov 16, 2025, 1:48:00 AM (13 days ago) Nov 16
to RC2014-Z80
Mark,

The RomWBW version isn't any use on an Orton 3C.  I've already built something similar to that version and got it working.  The version I'm trying to build has more features included.

PeterO

Peter Onion

unread,
Nov 16, 2025, 4:54:25 PM (12 days ago) Nov 16
to RC2014-Z80
I'm finally getting somewhere with this !   It looks like who ever added some of the optional features didn't bother to test if it still worked with their new options disabled :-(  I found a mismatch between the definition of a memory area and it's initialisation due to some if.. else.. end blocks having different defined size but the same initialisation data  when an option was defined which caused incorrect initialisation values to be used.

I've not got it to run but it's not finding any of the words in the dictionary, so I'm tracing my way through that code.

PeterO

Peter Onion

unread,
Nov 17, 2025, 10:01:49 AM (11 days ago) Nov 17
to RC2014-Z80
CPMForth.png
At last !!!   After more pouring over zsid trace listings I found another case of "This could have never worked!"
The one of the pointers use to find the last word in the dictionary was out by 256.  I traced this back to the origin address being wrongly added to some offsets to initialise address values in a table.
This is not needed as the origin address is automatically added in by using the ORG statement.  Maybe this behavior has changed in z88dk over the years ?

I've not tried any of the block editing and saving to file features yet so still work to be done before it can be called "working" :-)

Peter Onion

unread,
Nov 21, 2025, 10:02:54 AM (7 days ago) Nov 21
to RC2014-Z80
Just a quick update: OPEN-FILE and READ-FILE are working, though they both need some improvements, mostly in the area of error handling.

PeterO
Reply all
Reply to author
Forward
0 new messages