Talk About Network



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: The word RE...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3959 of 4050
Post > Topic >>

Re: The word RECURSE

by mhx@[EMAIL PROTECTED] (Marcel Hendrix) Mar 23, 2008 at 06:55 AM

<Montesquiou> writes Re: The word RECURSE
[..]
>> Maybe you want to define

>> : cell+ 2+ ;
>> : nfa>cfa  count $1F and  +  cell+ ;

> As it is an old compiler things are different. The layout of the words
is

> DEFB     N      Name Length Field
> DEFM     "XXX"  Name Field
> DEFW     NN     Link Field
> DEFW     NN     Code Field
> DEFD     Data   Parameter Field

> Therefore  fetching the NLFA gives the length.

I was just pointing out that 
1. CELL+ will ease porting your ZX81 code to a 32bit or 64bit platform
easily,
2. the compiler will toggle bits in N sometimes  ( $1F AND )
3. "COUNT +" is shorter than "dup c@[EMAIL PROTECTED]
 1+  +".

-marcel




 4 Posts in Topic:
Re: The word RECURSE
mhx@[EMAIL PROTECTED] (M  2008-03-23 06:55:59 
Re: The word RECURSE
<Montesquiou>   2008-03-23 15:13:43 
Re: The word RECURSE
Coos Haak <chforth@[EM  2008-03-23 17:19:28 
Re: The word RECURSE
<Montesquiou>   2008-03-23 20:24:46 

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 May 12 1:05:51 CDT 2008.