Hi Zbigniew,

> As an interesting exercise I'm going to recreate a little computer,
> whose design has been published on pages
> https://sites.google.com/site/retroelec/home

Cute 

> 
> There is a statement: "An ATMega microcontroller is a Harvard
> architecture machine. So to be able to load and run arbitrary code
> without reprogramming the flash memory the code has to be interpreted.
> Therefore the ATMega emulates a 6502 processor (-> von Neumann
> architecture)."

>From the perspective of the controller, any compiled forth code is
data indeed. That data is handled by the inner interpreter (basically
amforth-interpreter.asm).


> So my question is: is it possible for AmForth to use the entire
> external SRAM area for both data and my own new words?

Forth words are represented with a  single cell sized (e.g. 
16bit) number called execution token (the data mentioned above).
That number is used in the inner interpreter to identify both
machine code to be executed *and* to identify more data (other
compiled forth words).

Thus if you want to place them at different memories, that would
require changes in the core system: the inner interpreter,
the words , (comma), compile, >body and execute. Maybe a few
more as well.

>  You know, what
> I'm after: to have "basic" Forth system burned into FlashRAM, and then
> - as usual - to interactively develop the software for the little
> machine using that 128 KB SRAM the guy selected for his design.

To keep it simple(r), I'd recommend to separate the memories. Leave
the flash for forth, and let the 6502 operate the RAM. The initial
RAM content may come from flash. The flash may provide a block
storage service for the 6502 system as well (floppy emulator?).

Matthias
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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