[Coco] [CoCo] More Progress with Color Forth
Kip Koon
computerdoc at sc.rr.com
Sat Jan 3 20:19:04 EST 2015
Hi Stephen,
I would like to get a copy of your Color Forth code and binary. Thanks for offering it. I have done very little with forth up to this point, but have had a few lessons from a couple of guys on this list. It is quite an interesting way to write programs as well as being one of the most unique ways I have ever seen to accomplish that task! :) Keep up the fantastic work! Thank you for keeping us all updated with your progress on this project. By the way, where can a copy of the EDTASM 6809 and 6309 versions be obtained? Thanks a bunch!
Kip Koon
computerdoc at sc.rr.com
http://www.cocopedia.com/wiki/index.php/Kip_Koon
-----Original Message-----
From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Stephen Pereira
Sent: Saturday, January 03, 2015 1:35 PM
To: CoCoList for Color Computer Enthusiasts
Subject: [Coco] [CoCo] More Progress with Color Forth
I have continued my work on Color Forth, and I now have additional files working.
The original source code I did first is the Color Forth nucleus. When you assemble it and LOADM it, you will find that you have the ability to use the Forth language from the command line, but it does not yet have the ability to edit screens, because the code for the editor has not yet been entered. The Color Forth manual has additional source code as Color Forth screens in addition to the source code of the Color Forth nucleus.
I created a .DSK file which is a copy of all that I have at present. It contains several source and executable files:
- CCFORTH.ASM & CCFORTH.BIN
- CCFTMPLT.ASM & CCFTMPLT.BIN
- CCFEDITR.ASM & CCFEDITR.BIN
- CCF-MISC.ASM & CCF-MISC.BIN
All of these files were assembled using EDTASM6309 from Robert Gault.
If you wish to load Color Forth and play with it in immediate mode from the command line, then:
LOADM”CCFORTH” EXEC
If you want to try out the editor and edit code into your own screens, then:
LOADM”CCFEDITR”
LOADM”CCFORTH”
EXEC
Once you are in Color Forth, you must then compile the screens you previously loaded into Color Forth.
The easiest command to do this is:
7 6 5 4 3 2 1 LOAD LOAD LOAD LOAD LOAD LOAD LOAD
After that, the editor will be available.
To get into the editor and be working in screen 1, just type:
1 EDIT
To exit the editor, type:
QUIT
These commands and the other editor commands are described in the Color Forth manual.
The file CCFTMPLT is a file containing a set of 8 empty screens that one can use for creating their own screens offline. Use caution - Color Forth can hold 8 screens, each containing 32 lines of 32 characters. Each of the lines in the screens in the CCFTMPLT.ASM file has 32 spaces in it. When you type in your own code, you must REPLACE the spaces in the line you are entering, so the lines remain 32 characters long.
The file CCF-MISC contains a bunch of other miscellaneous code that was in the Color Forth cartridge, but has to be entered separately (like the editor) as it stands today. It does not contain the editor, so you can only use immediate mode from the command line but you have an expanded vocabulary:
LOADM”CCF-MISC”
LOADM”CCFORTH”
EXEC
Once you are in Color Forth, you must then compile the screens you previously loaded into Color Forth.
The easiest command to do this is:
4 3 2 1 LOAD LOAD LOAD LOAD
At present, the cassette I/O is not installed for saving and loading. Hence I have constructed this method of building screens as assembly language files so they can be loaded into place prior to loading Color Forth.
Since I am using the bit banger port for Drivewire, I have not attempted to do anything with the printer, either.
This is still very much a work in progress. Next, I am intending to experiment with loading screens and loading Color Forth, then compiling the screens into Color Forth and using SAVEM to save a new copy of Color Forth with the screens compiled in. This will allow me to build up the Color Forth dictionary a bit at a time and (hopefully) end up with all the functionality that was originally in the Color Forth cartridge all in one binary file.
Please contact me via e-mail if you are interested in a copy of the .DSK file.
smp
--
Stephen M. Pereira
Bedford, NH 03110
KB1SXE
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list