Just as a reference, this is how it works in FF.
The DPs and LATEST is kept in ram during interpretation
of a line and during compilation state.
It also gives a nice undo effect if the compilation fails.
ABORT will restart QUIT and copy the old values from eeprom again.
No half compiled words are left in the dictionary.
: quit
rpempty
[
begin
dp>ram \ copy DPs and LATEST to ram
begin
sp?
tib tibsize accept space interpret state @ 0=
until
dp>eeprom \ copy updated DPs and LATEST to eeprom
." ok"
again ;
BR Mikael
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel