[Amforth] Compiling Label

2013-11-14 Thread craig and heather
Matthias I tried your suggesting but sliteral cannot be compiled into another definition for some reason. It is not found even though I can see it in my words list and I can ' sliteral . and it is found. Is it on some non-default wordlist ? Maybe a better question to ask is "Is there another wor

Re: [Amforth] Compiling Label

2013-11-14 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Craig, > I'm trying to create a label defining word which I would like to > work as follows: > > xPos yPos s" this is the labels text" label: labelName > > I tried this code: > > \ Define a label that places itself : label:( x y

[Amforth] Compiling Label

2013-11-14 Thread craig and heather
I'm trying to create a label defining word which I would like to work as follows: xPos yPos s" this is the labels text" label: labelName I tried this code: \ Define a label that places itself : label:( x y addr count --- ) create , , , , does> dup over over

Re: [Amforth] Simulation of AVR with Amforth in simavr? (And: Unnescessary multiple writes to EEPROM?)

2013-11-14 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, > What's absolutely strange to me, is that definition of single word > causes eeprom cells 2 and 3 to be rewritten 8 times (?!). I just committed a change that should not write anything to the EEPROM if nothing will change. In your example the a

[Amforth] SOLVED: Simulation of AVR with Amforth in simavr? (Unsolved: Unnescessary multiple writes to EEPROM?)

2013-11-14 Thread wzab
It seems, that I've found the problem leading to inappropriate simulation of writing to the FLASH. The patch for simavr, allowing to simulate amforth is available here: https://groups.google.com/group/simavr/attach/e2ad4dc5abd1ef4/patch.txt?part=4&authuser=0&view=1 and description here: https://g

Re: [Amforth] Simulation of AVR with Amforth in simavr? (And: Unnescessary multiple writes to EEPROM?)

2013-11-14 Thread Wojciech Zabołotny
Investigating the problem of the failed simulation of Amforth in simavr I have added printing of every read and write operation to the FLASH and to the EEPROM. Afterwards I've found, that when I define a very simple word: > : test 12 ; ok > It gives the following sequence of writes in the sim