From: Matthias T. <mt...@we...> - 2010-07-03 08:23:21
|
Hi pito, > Dear friends, > I've just started with amforth and I would be happy to ask expets following: > In the version 4 there is a feature which stops me to compile succesfuly > in the template.asm: > ....These files include the *def.inc from atmel internally. > .include "device.asm"...... > > I had to change to: > ...These files include the *def.inc from atmel internally. > .include "devices/atmega32/device.asm"..... > in order to compile. I just wrote a little page at http://amforth.sourceforge.net/porting.html that may be useful. (and to answer Leons question as well). Feel free to comment or (if possible) send me a better one. I may edit it anyway later on... > I am using AVR studio under XP. It works great. Yeah, since I do not really use the studio, I cannot give any assistance. My world is Linux and Make/ant, despite the fact that I use the Atmel assembler with the wine tool ;=) > I am using Forfiter for uploading the words. Well, my czech is not that good to praise it ;=) > 2. I am new with forth (I am learning it because I want to design a FPGA > based forth procesor) so I've tried to add new words from examples - > however, some examples require to have defined additional words, which > are not included in the fresh compilation from the template. I've read > the docs there but - pls be so kind and do advise me in which dict_*.inc > shall I include missing *.asm word definitions? Is there any "full version" > which compiles all the words from your distribution - all those in \amforth-4.0\core\words? > And how to delete a word from flash when interactivly added? With forget > (..not there) or marker? I use the amforth-upload.py a lot. Just have a look at the howto section. With it I can keep the assembly code as little as possible (forth code is much better maintainable than assembly). For those who want to convert forth source code into assembler syntax Michael Kalus wrote a smart utility. With it you can include the generated files in your dict_appl.inc file. Michaels tool is called g4 and can be found at http://www.forth-ev.de/trac/browser/g4 And finally: the dict-files from the template/ directory contain most of the pre-defined words. Either directly or via the dict_xy files fromthe core directory. There are only a very few that are not included (you won't miss them initially). And yes, marker is the word you need. Just upload the lib/ans/postpone.frt and lib/ans94/marker.frt in that order to your controller. I droped FORGET in order to get the word list feature simple. Matthias |