Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Z80 CP/M Fo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 24 of 31 Topic 3933 of 4288
Post > Topic >>

Re: Z80 CP/M Forth & loading code from disk

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 21, 2008 at 08:51 PM

On Mar 21, 2:01 pm, "John Crane" <jc email> wrote:
> "Bruce McFarling" <agil...@[EMAIL PROTECTED]
> wrote in message
> > S" myfile.F" INCLUDED
> > or if it has INCLUDE (1),
> > INCLUDE myfile.F

> Thanks for setting me straight.  Looks like I was on the wrong track.  I
> tried these, but got "undefined word" error on INCLUDE, and
"interpreting a
> compile-only word" on S" .  So, I put S" into a colon definition, but
then
> got "undefined word" on INCLUDED.  I think the gods of Forth have it out
for
> me!

Serve me right for going by memory ... I don't now see how this gets a
file source in any way other than doing a submit, just like Camel.
There is a custom word << that is used to load files in hForth for
DOS, and if you load enough files that gets to the point of getting to
INCLUDED (and INCLUDE) ... but that custom word is not present in CP/
M.

After looking more closely at the hForth extension source files for
the z80 and 8086, it may have been hForth for DOS that I was using.
The non-interpeting-S" idiom of

BL PARSE MULTI.F INCLUDED

is something that definitely rings a bell, and I can't find an
"INCLUDED" in the z80 source.

Indeed, I would have to experiment to see whether hForth for z80 works
with the SUBMIT facility ... the following is how the process works
for CamelForth Z80:

http://www.camelforth.com/page.php?5

QUOTE

Disk I/O is not yet sup****ted under CP/M.  However, CamelForth v1.2
will
accept commands from a CP/M SUBMIT file using the XSUB utility.  The
SUBMIT file should contain the commands

        XSUB
        CAMEL80
        ...Forth source code...

This will run CamelForth/80 under XSUB, which will feed the rest of
the
file to CamelForth as terminal input.  You can automatically return to
CP/M by putting the CamelForth BYE command in the file.  Then you can
save the modified CamelForth image with the CP/M command

        SAVE nn CAMELNEW.COM

'nn' is the decimal number of pages occupied by the CamelForth
dictionary.  You can determine this value while in CamelForth with the
statement

        DECIMAL HERE 0 256 UM/MOD NIP .

Unfortunately, at the moment there's no way to totally automate this
as
part of the SUBMIT file.  And I'm reluctant to add SAVE to CamelForth
when CP/M has a perfectly good SAVE command.

UNQUOTE
 




 31 Posts in Topic:
Z80 CP/M Forth & loading code from disk
"John Crane" &l  2008-03-19 12:02:30 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-19 11:56:51 
Re: Z80 CP/M Forth & loading code from disk
ehramm@[EMAIL PROTECTED]   2008-03-19 22:09:57 
Re: Z80 CP/M Forth & loading code from disk
Udo Munk <umunk@[EMAIL  2008-03-20 20:52:00 
Re: Z80 CP/M Forth & loading code from disk
Udo Munk <umunk@[EMAIL  2008-03-20 20:48:08 
Re: Z80 CP/M Forth & loading code from disk
"John Crane" &l  2008-03-20 15:25:15 
Re: Z80 CP/M Forth & loading code from disk
Elizabeth D Rather <er  2008-03-20 17:40:27 
Re: Z80 CP/M Forth & loading code from disk
_ <jtayNOSPAMlor@[EMAI  2008-03-20 23:18:03 
Re: Z80 CP/M Forth & loading code from disk
Udo Munk <umunk@[EMAIL  2008-03-21 14:55:31 
Re: Z80 CP/M Forth & loading code from disk
Duke Normandin <dukeof  2008-03-21 15:18:37 
Re: Z80 CP/M Forth & loading code from disk
Duke Normandin <dukeof  2008-03-21 19:15:01 
Re: Z80 CP/M Forth & loading code from disk
Duke Normandin <dukeof  2008-03-23 02:47:08 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-20 17:24:51 
Re: Z80 CP/M Forth & loading code from disk
Jerry Avins <jya@[EMAI  2008-03-20 21:09:09 
Re: Z80 CP/M Forth & loading code from disk
"John Crane" &l  2008-03-21 10:19:01 
Re: Z80 CP/M Forth & loading code from disk
"Jenny Brien" &  2008-03-21 20:32:29 
Re: Z80 CP/M Forth & loading code from disk
Albert van der Horst <  2008-03-22 17:49:45 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-20 18:43:05 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-21 07:06:33 
Re: Z80 CP/M Forth & loading code from disk
Tarkin <Tarkin000@[EMA  2008-03-21 08:47:38 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-21 09:37:51 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-21 09:56:49 
Re: Z80 CP/M Forth & loading code from disk
"John Crane" &l  2008-03-21 12:01:56 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-21 20:51:38 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-22 07:31:37 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-22 09:18:04 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-22 09:43:52 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-03-22 16:48:01 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-04-09 09:06:26 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-04-09 09:13:26 
Re: Z80 CP/M Forth & loading code from disk
Bruce McFarling <agila  2008-04-21 11:46:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 8:42:41 CDT 2008.