Thank you for the enlightenment about 'environment show-wordlist'.

Does your comment about environment queries can't be compiled mean that in the 
definition of 'task' 

s" /user" environment? if allot else 24 allot then     \ default user size

will always give

24 allot

?

My original problem with the hanging system did not appear again. I have a 
stronger power supply now. Maybe the old was a bit too weak and could not drive 
the servos. Something in 'task' disables the interrupt and erratic servo 
movements can draw a bit of power.

Cheers,
Torsten

Am 22.01.2012 um 16:12 schrieb Matthias Trute:

> Hi Torsten,
> 
>> I tried my luck with multitasking but was not successful. Calling
>> 'task' hangs the system. In task 'enviroment?' seemed to the the
>> culprit as it also simply hangs the system then I saw that '/user'
>> does not appear in the word list. This is also true for some other
>> words like 'cpu', '/hold' etc. All the missing words seem to have
>> been assembled according to duemilanove.lst.
>> 
>> Is there anything I could do to find out what happens?
> 
> First: To get a list of all the environemt queries available
> the following command can be used
> 
>> environment show-wordlist
> /user cpu version forth-name /hold /pad wordlists  ok
>> s" /user" environment? . .
> -1 38  ok
>> 
> 
> Second: Environment queries cannot be used in colon
> definitions (like : foo s" /user" environment? ... )
> this due to the fact that environment? expects the string
> in RAM and s" compiles the string into flash and returns
> the flash address at runtime.
> 
> A workaround would look like
> 
> : foo [ s" /user" environment? drop ] literal ...
> 
> A better solution would be to make environment?
> state smart and make it use the flash strings
> if compiled. Another one would be to change s"
> to copy the flash string back to ram and leave its
> address there when called.
> 
> HTH
> Matthias
> 
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to