|
From: Leon M. <leo...@gm...> - 2010-08-08 19:24:24
|
Thanks for the reply. As usual, this leads to more questions. > Prior to amforth version 4.0 > here points to the next available location in flash memory and > heap points to the next available location in RAM. > > Starting with version 4.0 > here points to the next RAM location and > dp points to the next flash location Have the word definitions available at http://amforth.sourceforge.net/words/ been updated to reflect this change, or are they using the old definitions? > In a flash based Forth as amforth the definition is more like > : variable > create> > here , \ store addr of next avail. RAM > 2 allot \ allot 2 bytes of RAM > ; That makes sense to me, but I'm still interested in definition amforth uses: http://amforth.sourceforge.net/words/XT_VARIABLE.html Why "(CREATE) COMPILE COMPILE" instead of CREATE? What is (literal) doing in front of the 2? Shouldn't sticking (literal) in the definition be handled by ':' ? I take it that (unnamed) replaces ',' since we want to store the address in flash. Thanks -Leon |