Craig,

>     s" mcu-info" 2 + @i dp -
>     ." free FLASH cells        " u. cr

Remove these 2 lines too. There is no way to get the
max allowed dp value *without* the environment-query.
So you cannot get the number of free flash cells, sorry
for the confusion my mail has triggered :(

Which leads to the underlying problem. When I worked on
the environment queries, I wanted to put some useful
data into them. The forth standard has a few rather
trivial things not really something useful IMHO. 

I added some numbers from Atmel's partdescription files 
as a data structure "mcu-info". Like the maximum value 
for the dictionary pointer DP, some memory sizes and 
the controller name as a string. My impression is, 
that environment queries are not a favorable way 
nowadays... 

It is not necessary to utilize environment queries to
wrap those information, a prominent exception is the
cpu frequency (f_cpu). But is it worth the effort? And
what would be a useful (and simple to generate!) way
to do it? Simply the address of the mcu-info structure
or an individual word for every information? Or keep the
environment? thing (methodologically a clean way IMHO).

Matthias


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
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