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 30 of 31 Topic 3933 of 4284
Post > Topic >>

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

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Apr 9, 2008 at 09:13 AM

On Mar 19, 2:02 pm, "John Crane" <jc email> wrote:
> I'm new to Forth and thought it would be a useful addition to my older
8-bit
> machines.  I've tried a few Forth's from the Walnut Creek CP/M CD, but
can't
> seem to find one that allows me to load Forth code that was previously
saved
> to a disk file (with a generic text editor).  The closest I've found was
> Forth83 (8080 Forth 83 Model V 2.1.0 from June 84) that actually
mentions
> files in the docs.  All the others talk about disk blocks - which cause
> screwy behavior (I guess nobody got around to connecting the early
Forth's
> to the disk calls in BDOS).

> I think I must be missing something that's obvious.  Because, it seems
to
> me, just loading a text file from disk should be a very simple thing.

Also, for actually loading Forth code that was saved in a disk file,
on a Z80 Forth, get the Z80 CamelForth:

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

Add the following two lines to the front of the source, save it as
a .SUB file, and use SUBMIT to run it:

XSUB
CAMEL80
.... forth source

As the directions there say, if you want to use that to define a new
Forth image with those words included, then at the end of the file add
the line:

DECIMAL HERE 0 256 UM/MOD . DROP BYE

That should display the page parameter for the CP/M SAVE command as
the last step of the SUBMIT file, which can be used immediately after
the SUBMIT file is run to save the image.
 




 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 Sat Oct 11 6:37:03 CDT 2008.