DOCOL in ITC Forth Engines (UK Newbie)
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
DOCOL in ITC Forth Engines (UK Newbie)         


Author: MarkWills
Date: Sep 19, 2008 00:19

Hi there,

I'm writing a traditional ITC FORTH implimentation on my favourite
processor, the very old TMS9900 (RISC, stackless).

I have a question regarding DOCOL.

Should DOCOL follow the 'norm' of having a CFA (code-field address) or
can it be considered a 'special' routine?

I couldn't get things working until I realised that EXIT needed one,
and I am starting to think that DOCOL does to.

Previously, my EXIT routine was:

exit dect r5
mov *r5,r3
jmp next

However, NEXT expects a CFA, so I changed it to:

exit data exit1
exit1 dect r5
mov *r5,r3
jmp next

(just added a pointer which points one (16 bit) word forward).
Show full article (1.18Kb)
6 Comments
Re: DOCOL in ITC Forth Engines (UK Newbie)         


Author: Andrew Haley
Date: Sep 19, 2008 03:43

MarkWills yahoo.co.uk> wrote:
> Hi there,
> I'm writing a traditional ITC FORTH implimentation on my favourite
> processor, the very old TMS9900 (RISC, stackless).
> I have a question regarding DOCOL.
> Should DOCOL follow the 'norm' of having a CFA (code-field address) or
> can it be considered a 'special' routine?

DOCOL is, traditionally, just the ;CODE part of : .

Therefore, DOCOL doesn't have a CFA as it's not a word, but
: does.

Andrew.
no comments
Re: DOCOL in ITC Forth Engines (UK Newbie)         


Author: Albert van der Horst
Date: Sep 19, 2008 11:00

In article l64g2000hse.googlegroups.com>,
MarkWills yahoo.co.uk> wrote:
>Hi there,
>
>I'm writing a traditional ITC FORTH implimentation on my favourite
>processor, the very old TMS9900 (RISC, stackless).
>
>I have a question regarding DOCOL.
>
>Should DOCOL follow the 'norm' of having a CFA (code-field address) or
>can it be considered a 'special' routine?

Traditionally DOCOL is am assembler label in Forth's that are
implemented in assembler. It probably is not visible from Forth.
Certainly it is not so in figForth or ciforth.
>
>Mark Wills
>UK

Groetjes Albert
Show full article (0.83Kb)
no comments
Re: DOCOL in ITC Forth Engines (UK Newbie)         


Author: coos
Date: Sep 19, 2008 12:52

Op Fri, 19 Sep 2008 00:19:51 -0700 (PDT) schreef MarkWills:
> Hi there,
>
> I'm writing a traditional ITC FORTH implimentation on my favourite
> processor, the very old TMS9900 (RISC, stackless).
>
> I have a question regarding DOCOL.
>
> Should DOCOL follow...
Show full article (1.93Kb)
no comments
Re: DOCOL in ITC Forth Engines (UK Newbie)         


Author: brian.fox
Date: Sep 21, 2008 06:22

On Sep 19, 3:19 am, MarkWills yahoo.co.uk> wrote:
> Hi there,
>
> I'm writing a traditional ITC FORTH implimentation on my favourite
> processor, the very old TMS9900 (RISC, stackless).
>
> I have a question regarding DOCOL.
>
> Should DOCOL follow the 'norm' of having a CFA (code-field address) or
> can it be considered a 'special' routine?
>
> I couldn't get things working until I realised that EXIT needed one,
> and I am starting to think that DOCOL does to.
>
> Previously, my EXIT routine was:
>
> exit dect r5
> mov *r5,r3
> jmp next
> ...
Show full article (4.04Kb)
no comments
Re: DOCOL in ITC Forth Engines (UK Newbie)         


Author: brian.fox
Date: Sep 21, 2008 06:26

On Sep 19, 6:43 am, Andrew Haley
wrote:
> MarkWills yahoo.co.uk> wrote:
>> Hi there,
>> I'm writing a traditional ITC FORTH implimentation on my favourite
>> processor, the very old TMS9900 (RISC, stackless).
>> I have a question regarding DOCOL.
>> Should DOCOL follow the 'norm' of having a CFA (code-field address) or
>> can it be considered a 'special' routine?
>
> DOCOL is, traditionally, just the ;CODE part of : .
>
> Therefore, DOCOL doesn't have a CFA as it's not a word, but
> : does.
>
> Andrew.

Mark Sorry. I realize that I didn't include docol so here it is.
Show full article (1.40Kb)
no comments
Re: DOCOL in ITC Forth Engines (UK Newbie)         


Author: stephen
Date: Sep 22, 2008 11:52

> Here is my code for NEXT. I am using a re-write of the OLD TI-99
> Assembler on a re-write of the very OLD HS/Forth :-)) to create a
> cross assembler/compiler. (I can see Stephen Pelc rolling his
> eyes) :-)

Ho yes! I've written reams of code for that CPU, and there are bank
note sorting
machines out there with my code in them. There certainly used to be a
FIG listing
for the 9900, and it may be on Taygeta.

If you have a box that can read Sage CPM68k 5.25" floppies or
Marinchip MDEX 8"
floppies, there's a cross compiler for the 9900 somewhere in the
building ... but
wait, two floppies dated August 1986 have been found and transferred
to my PC!
They claim to be a 9900 cross compiler. Those in dire need should know
how to
find me.
Show full article (0.93Kb)
no comments