On Feb 21, 6:43 am, Pavel Klinkovsky <
pavel.klinkov...@gmail.com>
wrote:
Hi Pavel,
I am using the newest arrayForth 01g at 
http://greenarrays.com  but
this should work every version of colorforth I know of...
: array pop 2/ 2/ ;
: tbl align array [ 0 , 0 , 0 , 10  0  tbl + ! 20 1 tbl + ! 30 2 tbl
+ ! ]
[ everything in brackets is yellow ]
colon red : obviously  :-)   everything else is green.
If i type these I get these:
0 tbl + @   ===  10
1 tbl + @   ===  20
2 tbl + @   ===  30
The address popped from YOUR "tbl" definition uses your definition.
: array pop ;
This array--pop pops a BYTE address in your table word. Notice that
your tbl word returns an address 4 times larger than mine does. That
address needs to be converted to a doubleword address like in my array
definition with the "2/" 's  added. You COULD use your array--pop
definition but you would also have to define a byte-fetch word,
because "@" fetch is a cell fetcher and a cell is a dword in
colorForth.
Such a table should be "align"ed.
I hope this helps and if you need anything else... only ask :-)
Ray