Re: [Amforth] where to save the IP

2013-03-15 Thread Matthias Trute
Hi Mark, Sorry if I bored you guys. And again thanks for the help! You told a fascinating story. Are there any pictures of the project/results available? Matthias -- Everyone hates slow websites. So do we. Make your

Re: [Amforth] where to save the IP

2013-03-12 Thread Matthias Trute
Hi Mark, First of all - thanks to you and all your cohorts for Amforth! I have been using Forth for 30 years (F83 ... ) for a variety of projects and Amforth (since 4.2) with the 328P as my current platform. Wow. A Forth Guru. Welcome! A quick question: for timing purposes, I have dropped

Re: [Amforth] Table driven CRC-8 generator/checker

2013-03-09 Thread Matthias Trute
Hi Enoch, Let's revisit the issue of Amforth relationship with proprietary designs at a later time. You seem to hope for something ;) If you strongly feel that all contributed code should be GPL licensed I can live with that. I will send a correction to your web.de address. Great, thank

Re: [Amforth] Table driven CRC-8 generator/checker

2013-03-08 Thread Matthias Trute
Hi Enoch, Please find in http://pastebin.com/BRHaitj9 my complete CRC-8 implementation for peer review and library inclusion if there is interest. Since you put your code under MIT license, there is AFAIK no legal way to combine it with amforth (GPL). IANAL IMHO. PS1: Is there any

Re: [Amforth] Wish to FORGET

2013-03-07 Thread Matthias Trute
Hi Enoch, I have absolutely no problem that FORGET will be forgotten. Here's an interesting article by one of Forth greats: Proposal: un-obsolete FORGET http://www.forth200x.org/unobsolete-forget.txt The author sees FORGET as a useful tool for hot system upgrade. Compare FIND with

Re: [Amforth] Variations on .S

2013-03-04 Thread Matthias Trute
Hi, Hello Erich all, The focus of my .s comment was on Matthias non standard stack listing order, Since there is no standard format, my variant cannot be non-standard. Thats impossible by definition. I updated http://amforth.sourceforge.net/TG/recipes/Dumps.html with Erich's examples.

Re: [Amforth] amforth-shell.py patch proposal

2013-03-04 Thread Matthias Trute
Hi Enoch, As I promised to generalize crc8.frt (#1) a question was raised how would the user configure it to its use, namely, select the generating polynomial byte and the needed bit order (#2). I answered the question through the following amforth-shell.py improvement which introduces a

Re: [Amforth] Wish to FORGET

2013-03-03 Thread Matthias Trute
Hi Enoch, How can I reclaim the Flash memory of the crc8_msb_table word itself? (1) Our Tools Ext don't include FORGET. (2) I could use Core Ext MARKER if we had a deferred facility of sort. I.e., create a deferred table and fill it using a transient crc8_msb_table (which MARKER would

Re: [Amforth] .S “dot-s”

2013-03-02 Thread Matthias Trute
Hi Enoch, Regarding .S Indeed, says Forth 2012 RC1, the format of the display is implementation-dependent. However, doesn't GFORTH display order make a better sense: In which way: by adding the stack depth or the ordering? 1 2 3 .s 3 1 2 3 ok While ours: 1 2 3 .s 3 2 1 ok I

Re: [Amforth] .S “dot-s”

2013-03-02 Thread Matthias Trute
Hi Enoch, And if I have your ear :-) You'll (almost) always have it. ;) I prefer (gforth): -1 -2 -3 .s 3 -1 -2 -3 ok over (amforth): -1 -2 -3 .s 65533 65534 65535 ok i.e., the regular numbers' format. Thats fine. Just remove the line in your application dict_appl.inc file and add your

Re: [Amforth] Development request

2013-02-27 Thread Matthias Trute
You drive me crazy ;) For your information, FlashForth has these robustness mechanisms built in. One may find the new recipe Unbreakable worth studying. http://amforth.sourceforge.net/TG/recipes/Unbreakable.html Some information may be new, some are rather hidden. Some ideas are from Michael

Re: [Amforth] where is XT_DOTO defined

2013-02-27 Thread Matthias Trute
Wis, Sorry, I can't find XT_DOTO (used in 'comma.asm') in any file named 'do.*'. Where is it, please? core/words/to.asm (just expand your search file pattern ;) ) HTH Matthias -- Everyone hates slow websites. So

Re: [Amforth] Address arithmetic

2013-02-27 Thread Matthias Trute
Hi, Amforth introduces the e-addr and f-addr concepts to match the AVR arch. I think that it is worth mentioning that f-addr is word based and there is no subtype to it. That is unlike the data space relationship (quoting forth-rc1 page 22): a-addr ⇒ c-addr ⇒ addr ⇒ u;

Re: [Amforth] Development request

2013-02-27 Thread Matthias Trute
Mikael, From checking your code, I can imagine a few things that would break FF as well. ;) I am interested to know what that could be. In flashforth.asm I found the following lines rcall DOLIT .dw dp_start rcall FETCH rcall TRUE_ call

Re: [Amforth] Need another mailing list to submit patches?

2013-02-21 Thread Matthias Trute
Hi, Enoch, Index: doc/source/refcard.rst The refcard file is a generated file. I've dropped it from the repository. (which makes it harder to generate the doc however..). The mailling list ist configured to strip all attachment. That is an very useful setting, but makes live a little harder

Re: [Amforth] Useful?

2013-02-20 Thread Matthias Trute
Hi Enoch, Well, let's try the following indirect argument: Atmel thought these instructions to be important enough to spend 2^10 opcodes out of their precious 2^16 RISC range. Don't we need to respect that engineering decision by suitable Amforth words? No, we don't. Sounds too harsh?

Re: [Amforth] Useful?

2013-02-20 Thread Matthias Trute
Hi, Your SBI/CBI macros are an excellent and inspiring solution for a particular problem. I think it really deserves to be published. As a recipe in the cookbook. A rough first shot is online: http://amforth.sourceforge.net/TG/recipes/Efficient-Bitmanipulation.html It will get links and

Re: [Amforth] int_restore, etc.

2013-02-16 Thread Matthias Trute
Hi, -int (int-off.asm) counterpart is int_restore (int-restore.asm). So, why is this int_restore header commented out, i.e., not available to the high level? uhm. yes. These words are one of very first ones, that fell out of scope later on. Candidly, as +int (int-on.asm) is a simple SEI

Re: [Amforth] int_restore, etc.

2013-02-16 Thread Matthias Trute
Hi, I like these critical[ ]critical words, much better than int_suspend and int_restore, but I prefer their current asm code implementation since one would like to keep the criticial code execution to the minimum. A critical section frame is not particular speed sensitve. It simply turns

Re: [Amforth] file / word name

2013-02-15 Thread Matthias Trute
Hi Wis, Forth word inituser is found in the file user_init.asm. This makes it difficult to follow the startup execution flow. Is it possible to change one or the other to make it consistent with the rest of the Forth words? It was an artefact, I simply forgot to change the filenames.

Re: [Amforth] Useful?

2013-02-15 Thread Matthias Trute
Hi Enoch, Enochs code is a macro, assembling one single instruction SBI into dictionary and naming it. Calling that word will execute the SBI instruction. Michael I confirm, the code works. Well. I think its definitly worth some documentation. It is not obvious how to use it. I suggest

Re: [Amforth] Useful?

2013-02-14 Thread Matthias Trute
hi Enoch, I'd like to see this forum also offering code snippets, so here's my first humble attempt of harnessing the atomic bit manipulation instructions. : port:hi ( portadr bitno -- )\ SBI swap $20 - 3 lshift or $9A00 or code , end-code Did you actually test this code?

Re: [Amforth] inner interpreter operation.

2013-02-08 Thread Matthias Trute
Hi Wis, I've been doing hardware and I'm finishing an ATXMEGAxx4U board Keep in mind that the atXmegas are different from the atmegas (without X). amforth currently cannot write to flash, so all stuff that requires it does not work (e.g. the compiler). A simple text interpreter works (somehow)

Re: [Amforth] inner interpreter operation.

2013-02-08 Thread Matthias Trute
Hi Enoch, Which doc output do you consider complete. I'm still experimenting. The build process has some quirks as well. In the meantime, just enjoy the results on the webpage (some things do not work locally).. Matthias

Re: [Amforth] inner interpreter operation.

2013-02-01 Thread Matthias Trute
Hi Wis, I'm new to this and I'm trying to understand the amForth inner interpreter. There are a couple of clarifications in the amforth Documentation, Release 5.1-wip,January 26, 2013 that would help a lot. Unfortunately I'm currently busy with other things, so please dont hold your breath

Re: [Amforth] Why reStructuredText

2013-01-20 Thread Matthias Trute
Hi Enoch, Why reST? Its simple, its text based and the tool chain is at the right places customizable. Did you ever dealt with the docbook tool chain? I've spent fruitless hours with it. with reST I could do more with far less work. And reST seem to have a future, its not the hype of the day.

Re: [Amforth] Using User Deferred Words

2013-01-13 Thread Matthias Trute
Hi Enoch, Suppose we want to duplicate all output. Can anyone please show a simple working example? The following does not work. It generates a endless recursion (emit calls itself), until the whole system crashes. You read the two recipes

Re: [Amforth] lib/bitnames.frt

2013-01-13 Thread Matthias Trute
Hi Enoch, Isn't the following more sensible? : is_low? ( pinmask portaddr -- f) -c@ invert and +c@ and 0= ; : is_high? ( pinmask portaddr -- f) -c@ and +c@ and 0 ; Thanks, Enoch. 1) the writeup says they return true if... which means return -1 and not a

Re: [Amforth] Using User Deferred Words

2013-01-13 Thread Matthias Trute
Hi, Thanks Matthias for clarifying those user deferred words. Well, at least I tried my best ;) I summarized the status quo under http://amforth.sourceforge.net/recipes/deferred-words.html What I also found confusing is the mention of Udefer@ and Udefer! on

[Amforth] Release 5.0 is out

2012-12-27 Thread Matthias Trute
Hi all, its been a long time since the last release, and a lot of work is done. So I decided to use some spare minutes to publish the status quo as a new release. Many many thanks to all, who contributed with questions and/or patches. The release 5.0 adds support for 1wire devices (due to work

[Amforth] Sourceforge Updates

2012-12-10 Thread Matthias Trute
Hi all, Sourceforge gradually updates all projects to a new system. Today I migrated amforth to it. The most important change for now is a new subversion location. You may wish to re-checkout your sandboxes. You find all details at the known URL http://sourceforge.net/projects/amforth/ and links

[Amforth] Amforth-Shell extensions (was: SVN revision tagging)

2012-12-02 Thread Matthias Trute
Hi Enoch, Mentioning amforth-shell.py, I think that we should teach it some day to substitute Forth constant-s on the fly as we upload the Flash. Let's say CONSTANT-s get substituted while constant-s don't. This generalization of the current register name substitutions would benefit guys with

Re: [Amforth] String corruption

2012-11-30 Thread Matthias Trute
Hi David, After a good couple of days of learning forth and getting my xbee communicating using interrupts on uart1 in API mode, this has just started happening and I'm stumped. When I generate a string with s Some text, it gets corrupted, and I keep seeing bits of the command lines

Re: [Amforth] SVN revision tagging

2012-11-27 Thread Matthias Trute
Hi Enoch, My solution was to create a svnversion word through the Makefile: Way shorter than I expeced. Smart. I've put into the recipe at http://amforth.sourceforge.net/recipes/build-timestamp.html Thank you Matthias P/S M reminds me that you did not accept my amforth-shell.py patch yet :-)

Re: [Amforth] SVN revision tagging

2012-11-23 Thread Matthias Trute
Hi all, until a full blown solution is available, one may find http://amforth.sourceforge.net/recipes/build-timestamp.html not completely useless. The solution should work for all recent versions of amforth. I'm not too happy with the name of the word, if someone has a better one, I'd appreciate

Re: [Amforth] SVN revision tagging

2012-11-23 Thread Matthias Trute
Hi, It is a solution but I prefer a word like svnrev. :=) In this context, I recommend having a ChangeLog file at amforth root (as recommended by GNU coding stadard) whose revision number is captured by the a.m. word. I try to give every commit a meaningful change message, but I wont do

Re: [Amforth] SVN revision tagging

2012-11-20 Thread Matthias Trute
Hi Eoch, Can you insert the SVN revision no. into Amforth ID message i.e., amforth r1304... instead of amforth 4.9... (as is fit for a release). Well, lets have a short look at that task The command svnversion gives the revision number of the last commit. But: Of which file / directory? You

Re: [Amforth] amforth-shell.py

2012-11-09 Thread Matthias Trute
Hi Enoch, When cleaning up my code to make it uploadable through the minicom plugin as well I noted that commented #include's are not recognized by the shell (though promised). Below is a patch that straightens things up. Many thanks for it. Also, I seek confirmation that amforth will

Re: [Amforth] From frt to asm

2012-10-27 Thread Matthias Trute
Hi, *Downloading* hex code from the application is what I do now. Quite ugly IMO. Whats wrong with it? It keeps the state of the controller just the same way MARKER does and you can transfer that state to (possibly) a lot of other controllers (of the same type). Matthias

Re: [Amforth] Help using second uart

2012-10-25 Thread Matthias Trute
Hi David, I don't need a Forth prompt on the other uart - I'm just chatting to other devices, initially an Omnikey RFID R/W module, and I'll probably also want to hook up to XBee radios later. So I just want to write a string of bytes to the second uart and have the response read into a

Re: [Amforth] amforth-shell.py idea

2012-10-16 Thread Matthias Trute
Hi, \ older mcu's may need [undefined] TCCR0B [if] TCCR0 constant TCCR0B [then] [undefined] TIMSK0 [if] TIMSK constant TIMSK0 [then] That would not even require any external tool at all Volunteers welcome ;) (be aware: its not that easy as its seems to be). I just added

Re: [Amforth] amforth-shell.py idea

2012-10-14 Thread Matthias Trute
Am 13.10.2012 22:51, schrieb Enoch: On 10/13/2012 02:53 PM, Matthias Trute wrote: Hi, We do still have a problem how to deal with hardware idiosyncrasies as timer0.frt demonstrates. It should not be dealt with through the shell (re my ill thought #py idea). The generic frt code should

Re: [Amforth] amforth-shell.py idea

2012-10-13 Thread Matthias Trute
Hi, What is your recommended practice? Very simple: Use what you like most. All tools that I include with amforth are the ones I consider useful for others as well. I do not enforce any of them. The shell has a few advantages over a dumb terminal and I like to use it. YMMV. Matthias

Re: [Amforth] amforth-shell.py idea

2012-10-13 Thread Matthias Trute
Hi, We do still have a problem how to deal with hardware idiosyncrasies as timer0.frt demonstrates. It should not be dealt with through the shell (re my ill thought #py idea). The generic frt code should include some preprocessing instructions to produce MCU specific code, m4 perhaps? A

Re: [Amforth] amforth-shell.py idea

2012-10-11 Thread Matthias Trute
Enoch, Please find attached a patch to Keith's shell script for your consideration. I took the lazy approach of using Python's eval() option and it was quite easy: I've difficulties to understand you approach. Do you change the forth code, that gets sent to the controller with the

Re: [Amforth] amforth-shell.py idea

2012-10-08 Thread Matthias Trute
Hi, On the at90can128, for example, one has to introduce TCCR0 constant TCCR0B before uploading lib/hardware/time0.frt How about extending Keith's fantastic shell with conditional upload constructs such as: #ifdev at90can128 % TCCR0 c! \ stop timer #else % TCCR0B

Re: [Amforth] Future documentation ideas - reference card with index

2012-09-20 Thread Matthias Trute
Hi, And about refcard... As it is made from tex file could it be possible to put index to pdf? all words listed in alphabetical order. It took some time but I finally managed to producde a PDF with an index: http://amforth.sourceforge.net/refcard.pdf Matthias

Re: [Amforth] Different memories and arrays

2012-09-16 Thread Matthias Trute
Hi Hannu To memory it could be done with variable or buffer: To use eeprom, I would have to use value. Does http://amforth.sourceforge.net/recipes/eeprom.html answer (some) of your questions? At least Ebuffer: is worth thinking about, /Yes that recipe is brand new) : neededtrick jump

Re: [Amforth] KEY word

2012-09-16 Thread Matthias Trute
Hi Paul, Hi All, Thanks for the replies to my questions. I tried the hex files that Erich sent me and KEY still does not work as expected... Strange. Sounds more like a hardware problem. I do have the capability to rebuild the hex files and could possibly fix the problem if I knew where

Re: [Amforth] AMFORTH

2012-09-15 Thread Matthias Trute
Hi Paul, Erich already did most of the work. 3. Is there a list of the .set want ... options that can be used? Not really a list but a hint: You can look for lines like .set WANT_... in the core/ directory. One file is macros.asm which defines some generic settings. The other source for WANT

Re: [Amforth] unspecified base in device/X/X.frt files

2012-09-15 Thread Matthias Trute
Hi, So, should there be a decimal, or should there be prefixes? And shouldn't these addresses be in hex notation anyway? I vote for hex notation with prefixes. A prefix is obviously a good thing (tm), the actual number base itself turns into something less important then. You force me to

Re: [Amforth] Bug

2012-09-13 Thread Matthias Trute
Hi Arthur, I think I see a bug in your AmForth v4.9. In file ..\core\words\to-lower.asm I see This will not convert Z chat to lower case. To fix you have to replace the string .dw 'Z' by the string .dw 'Z'+1 Yes indeed. Thank you. Fix applied. btw: the toupper word does

Re: [Amforth] Compiling Amforth 4.9 - forward labels in macros

2012-08-18 Thread Matthias Trute
Hi, Generated jump goes one word too far (it is jump 5 words forward and not jump 4 words forward). It can even be seen that the length of a macro expansion is wrongly estimated (it says the whole code is 7 words, while it is only 6). avrasm2 generally does not allow using not-yet-defind

[Amforth] New Release 4.9 tagged

2012-07-27 Thread Matthias Trute
Hi all, I've just tagged the release 4.9. The core itself did not change that much (except that I finally managed to create the device files from the Partdesciption files from AVR Studio 6). This gives not only some new controllers but also the register bitnames (I used the bitmap values verbatim

[Amforth] Filename completion for the amforth shell

2012-07-12 Thread Matthias Trute
Hi Keith, I've played with filename completion for your remarkable shell. First the good news: it works (for me). The bad news is that the code is by far not as readable as yours. But I tried my best. What does it do Upon startup (and whenver a general update seems appropriate) it reads the

Re: [Amforth] New forth interaction script

2012-07-08 Thread Matthias Trute
Hi all, Matthias I collect the changes in the repository at Matthias http://amforth.svn.sourceforge.net/viewvc/amforth/trunk/tools/amforth-term.py?view=log Just for the record: I renamed the tool to amforth-shell, You'll find it here:

Re: [Amforth] New forth interaction script

2012-07-05 Thread Matthias Trute
Actually, my motivation was a lot simpler. I wasn't sure if the regular expression I use to match an error being indicated by the amforth interpreter really covered all cases. That expression (without the delimiting double quotes included below) is: \?\? -\d+ \d+ \r\n $ Is it

Re: [Amforth] Keith's interactive script - Windows XP

2012-07-03 Thread Matthias Trute
hi, 5. as my editor needs this in order to open and jump to the ie. line 3 C:\WinAVR\pn\pn.exe --line 3 filename I added to the edit_file (in the script) ... elif exename == pn.exe: cmd = [self.editor, --line, str(lineno), filename ] .. 6. double clicking on amforth-term.py icon opens

Re: [Amforth] Vocabulary

2012-05-31 Thread Matthias Trute
Hi Jan, Hello, I tested the word vocabulary with vocabulary test-vocabulary I've reproduced your test and it works for me. I could not reproduce your results. The formatting is somewhat ugly, sorry for that vocabulary dummy ok only ok order 20 1 20 ok forth ok also order

Re: [Amforth] need some help

2012-05-31 Thread Matthias Trute
Hi Jan, Hi Mathias, I have include in to the dict_appl.inc the last two words. .include dict_interrupt.inc .include dict_usart.inc .include dict_wl.inc .include dict_minimum.inc .include words/2to_r.asm .include words/2r_from.asm Final-New-Line missing? The assembler is a stupid tool

Re: [Amforth] Loading the assembler

2012-05-26 Thread Matthias Trute
Hi Jan, I dont understand your answer, just replace assembler with bit Can you explane that please? Literally: instead of assembler just write bit vocabulary assembler only forth also assembler definitions vocabulary bit only forth also bit definitions Or just remove that line... Matthias

Re: [Amforth] Loading the assembler

2012-05-25 Thread Matthias Trute
Hi Jan, When I try to load the assembler I get an error when loading. It stops on the line : assembler definitions The Assembler still uses an old impelementation of the vocabularies. You can (a) delete that line completly or (b) load the file vocabulary.frt and replace the same line with

Re: [Amforth] Stabel version 4.8

2012-05-19 Thread Matthias Trute
Hi Jan, Where can I find it? A web interface can be found here: http://amforth.svn.sourceforge.net/viewvc/amforth/trunk/lib/ You'll need the new lib/ans94/2x.frt file as well since it fixes the RANGE error. A more in depth description on how to access the repository using other tools can be

Re: [Amforth] Compiled Version 4.8 with AVR (windows) studio not running

2012-05-14 Thread Matthias Trute
Hi Jan, I found some strange thing. I compiled the version 4.8 under windows with AVR Studio 4. As you can see there where no errors. ATmega328P memory use summary [bytes]: Segment Begin End Code Data Used Size Use% --- [.cseg]

Re: [Amforth] Float with v4.9 (trunk) - recognizers

2012-05-12 Thread Matthias Trute
Hi Pito, Hi, as expected this last 2 words from Leon's latest float lib give errors with 4.9 (in count, get-recognizer) ... \ recognizer is a feature that is available for amforth 4.3 and up : rec-float count float ... Any hint how to get it work with 4.9? There are a few options: 1)

Re: [Amforth] Question about sbi,cbi

2012-05-11 Thread Matthias Trute
Am 10.05.2012 14:18, schrieb Jan Kromhout: Hello, I'm looking in some code to look how the analog write is working. I see commands like sbi(…,…) and chi(…,…) SBI means Set Bit in Io-register. CBI in analogy Clear Bit in Io register. The atmegas use a 5bit address range for some IO registers

Re: [Amforth] Dubble words, no error message!!

2012-05-07 Thread Matthias Trute
Hi Jan, What strikes me is that I can enter two identical words without an error. This is not the case in other forth versions that I have used. Is this a conscious choice or a bug? One design rule of amforth is to minimize code size. It needs code to check for already defined words, so I

Re: [Amforth] Issues with a word compile - flash or eeprom write issues

2012-05-06 Thread Matthias Trute
Hi, Hi, after a year I'm trying to run the latest version on atmega32 (11.0592Meg xtal). Compiling and flashing is ok, I get working system with one exception - I cannot add a new word - ie : foo 123 . ; ok words and it hangs here Cannot reproduce: : foo 123 . ; ok words foo

Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering simple colon or constant definitions

2012-02-29 Thread Matthias Trute
Charles, Hi Matthias, Thanks for the quick reply. Actually each definition was on one line. I'm sorry. It works for me (the same controllertype). And I have no idea, what could possibly go wrong with your installation. Matthias

[Amforth] ANS 94 Core Wordset now completly available

2012-02-19 Thread Matthias Trute
Hi all, together with some recent additions regarding evaluate amforth provides now the whole ANS94 Core Wordset. From the Core EXT only the SPAN, QUERY and EXPECT are left out (nobody should use them anyway). Let's party :) Matthias

Re: [Amforth] /user does not appear in 'words'

2012-01-31 Thread Matthias Trute
Torsten Sadowski wrote: Does your comment about environment queries can't be compiled mean that in the definition of 'task' s /user environment? if allot else 24 allot then \ default user size will always give 24 allot ? Not at all. 24 was the number, most amforth version did use.

Re: [Amforth] /user does not appear in 'words'

2012-01-22 Thread Matthias Trute
Hi Torsten, I tried my luck with multitasking but was not successful. Calling 'task' hangs the system. In task 'enviroment?' seemed to the the culprit as it also simply hangs the system then I saw that '/user' does not appear in the word list. This is also true for some other words like

Re: [Amforth] uploading files on arduino UNO

2012-01-20 Thread Matthias Trute
Robert, import fdpexpect ImportError: No module named fdpexpect Is this a debian python installation problem? Most probably. My ubuntu 11.10 has the package dpkg -l | grep python | grep exp ii python-pexpect2.3-1ubuntu installed automatically, IIRC.

Re: [Amforth] measuring time

2012-01-20 Thread Matthias Trute
Hi, But here we go: Whats wrong with the following simple test code: looks innocent (haven't tried it however) The result on my arduino uno is quite inconsistent, but mostly I see: 3 TCCR0B c! does not hang the system, but does not tick either. 4 TCCR0B c! hangs system, had to

Re: [Amforth] VE_ROOT wordlist anywhere?

2012-01-19 Thread Matthias Trute
Hi Marcin, Hello, my build of amforth trunk (r957) fails with amforth-eeprom.asm that VE_ROOT is not defined anywhere. It seems that even ONLY restores the wordlist order to contain FORTH vocabulary and there are no words defined in VE_ROOT. A patch below removes the VE_ROOT

Re: [Amforth] Forth documenting system?

2011-12-08 Thread Matthias Trute
Hi Hannu, I have written some forth code and I've forgot what it does. I got this idea of generating documentation and started to google a bit. AFAIK only amfort has autogenerated documentation. Not at all. You may look at the linux kernel sources as well ;) Mixing code and its documentation

Re: [Amforth] Problems with a Duemilanove

2011-12-05 Thread Matthias Trute
Hi, One more remark: The Duemilanove uses two different controllers: Atmega168 (old) and Atmega328 (more recent), you may have picked the wrong one. Matthias -- All the data continuously generated in your IT

Re: [Amforth] Atmega328p

2011-10-05 Thread Matthias Trute
Marc, I found basically 3 reason for a non-working serial line - wrong fuse settings. The controller works with a different clock as you think it does, which lead to different baud rates. The result is some garbage characters on the wire. The only solution is to use... the right settings.

Re: [Amforth] Beagleboard Trainer from TinCanTools

2011-09-14 Thread Matthias Trute
Am 14.09.2011 20:23, schrieb Andrew Holt: Hi, You may, or may not, know that there is a add on for the beagle board that is Arduino compatible and use the ATmega328. I would like to use amforth with this board and was wondering if I am going to be a pioneer, or if somebody else has

[Amforth] New Version again...

2011-06-29 Thread Matthias Trute
Hi, the month is almost over, its time for a new release ;=) Version 4.5 changes mostly internal things and documentation. The recognizers got there final API with addr/len strings (and the interpreter code looks much messier.). This string representation is now used internally as well. Amforth

Re: [Amforth] newby question mega 2560

2011-06-22 Thread Matthias Trute
Hi Andrew, The list of arduino boards 'supported' include the Mega with the ATMega 1280 part. My question is waht are the differences between the 1280 and 2560 ? is it simply that the one has more flash than the other ? and the amforth will work fine on the 2560 part ? Just got my 2561

Re: [Amforth] Amforth 4.4. - issues

2011-05-25 Thread Matthias Trute
Hi Pito, : rec-float count float ok if state @ if fliteral then -1 ?? -42 31 -42 means stack underflow, just add a postpone in front of fliteral. I'll add the fix later to the code base. Thanks for reporting Matthias

Re: [Amforth] Release 4.4 tagged and published

2011-05-25 Thread Matthias Trute
Pito, Does it mean we can input the float now like this?: -3.44556e-16 0.23233E13 f* fs. yes, that is the goal of it. You can even compile floats in colon definitions and they will work. Is the Leon's float patched in the 4.4 already? (as I can remember there was an issue with printing

Re: [Amforth-devel] Multitasking - details/demo

2011-04-16 Thread Matthias Trute
Pito, Hi, is there any reading for newbies how to start with amforth's multitasking, some explanation etc. E.g. 3 leds blinking at different rates and in parallel working with amforth..P. http://amforth.sourceforge.net/howto.html has an examples, the source code has some (poorly documented)

Re: [Amforth-devel] Starting amforth

2011-04-12 Thread Matthias Trute
Am 10.04.2011 22:58, schrieb D Nyberg: Long ago, I worked with forth extensively, but haven't for a while, so I have forgotten much. Also, that was work for an employer, so I don't have copies of what I did back then. So I'll have to reinvent things I remember doing. One of the things I

Re: [Amforth-devel] Starting amforth

2011-04-08 Thread Matthias Trute
hi Hannu Q: Is somewhere simple LED blinker example? A: saw examples directory and studying those programs. But the workflow from forth code to standalone program is missing I'll write one, asap. It's really a FAQ ... Q: How do I store the forth program to MCU so that when it starts I

Re: [Amforth-devel] Speed analysis..

2011-04-03 Thread Matthias Trute
pito wrote: Hi, when running the amforth4.2 in simulator I've observed following: a) 1 1 + . takes 42sec to calculate b) 1000 1000 3000 + - . takes 60sec to calculate. Does it mean the amforth spends most of the time with tokens lookup? The dictionary is always searched first. A number

Re: [Amforth-devel] Progress and More Difficulties with Hello World exercise

2011-03-29 Thread Matthias Trute
Hi, As I understand it, the amforth way of dealing with interrupts on the serial port is to have the ISR set a flag, and the uart is truly serviced when the inner interpreter steps to the next word. You are right that the inner interpreter can deal with interrupts (to some extent), but the

Re: [Amforth-devel] Interest in the AT90USB family of chips?

2011-01-28 Thread Matthias Trute
Randy, Has their been interest/work/progress in porting AMforth to use the AVR usb flavor of chips? There is an excellent OpenSource lib (LUFA) and libusb drivers for win32 that work well? the controllers itself should work, what's missing are words for the USB module(s). IMHO the code is

Re: [Amforth-devel] amforth on Arduino

2010-11-27 Thread Matthias Trute
Robert, I installed AvrStudio4 and Update SP3, hope this was right. It doesn't really matter, the changas for a particular device are small and I did not found anything relevant for the amforth prompt (at least). install wine and copy the Atmel assembler avrasm2.exe together with the

Re: [Amforth-devel] amforth on Arduino

2010-11-24 Thread Matthias Trute
Hi Robert, I found avrasm2.exe, but I don't know how to get AppNotes2 :( www.atmel.com does not let me download it. The software must have telepatic capabilities and feel my uneasiness with downloads where you have to give your snail mail address, phone, ... What's in that directory, btw?

Re: [Amforth-devel] amforth on Arduino

2010-11-21 Thread Matthias Trute
Robert, Thank you for these informations. I'm working with Debian Linux. Never used wine before. just another hint: I did not configure my ubuntu wine at all, only at the very first run it may present a config dialog, just press ok to accept all defaults. Running avrasm2 is the only task for

Re: [Amforth-devel] amforth on Arduino

2010-11-19 Thread Matthias Trute
hi, So I asked $SEARCHENGINE and found this project. Right now I try to make sense of the different links I've got. Unfortunately it is not so easy for a newcomer to filter up-to-date info from outdated one. Can you please give some more details? I try to keep the things up-to date on the

Re: [Amforth-devel] Help with LOAD

2010-11-17 Thread Matthias Trute
Hi Karl, I have all of the support words in place to permit editing and loading blocks of source from a serial EEPROM or ferroRAM. The only piece I'm missing is how to hook a buffer read from the block device into the text stream used by the interpreter. What is the traditional way

Re: [Amforth-devel] Serial communication via a digital port?

2010-11-17 Thread Matthias Trute
hi, Dear amforthers, I was wondering whether there is already a dictionary available that enables me to send a string at 9600 baud via a digital pin? You can use the existing code that uses the hardware modules. A software only (bit-bang) solution does not exist (yes), at least as far as I

Re: [Amforth-devel] Editor and screens now working

2010-10-25 Thread Matthias Trute
hi Karl I now have a (very crude) screen-based editor working on my ATmega328P target. I added support for a Microchip 25LC512 serial EEPROM, which not only lets me back up an image of my system, but also supports 32 source screens. I modified REFILL to check a newly added user

Re: [Amforth-devel] amforth application development cycle

2010-10-21 Thread Matthias Trute
Hi, First: I do development on my desk, not in the forest or beneth the roof. Whenever I'm satisfied with a new version, I copy the flash/eeprom content from the working controller to hex files (avrdude can do reads as well as writes) and transfer those files to the final target systems (one by

Re: [Amforth-devel] '328p + 25LC512

2010-10-21 Thread Matthias Trute
Hi Karl, its really difficult to communicate with you. I sent a lot of emails recently, no-one seem to reach you... I can make the .asm files available if anyone is interested... I am. And if you could please re-send your user guide to me again, I've got only old versions from 2007 (at

Re: [Amforth-devel] ATXmega - a practical experience

2010-10-06 Thread Matthias Trute
hi Pito, Hi, is there somebody with a practical experience with amforth on an atxmega? The atxmegas do not work currently. The showstopper is that the flash write word does not (yet) exist, thus no compiler will work. The other topic is a very weak usart terminal which drops many characters,

Re: [Amforth-devel] FLOAT

2010-09-30 Thread Matthias Trute
hi, Hi Pito. If float is assembler defined and closed with something like end- code, this end-code has to smudge the definition the same way ; (semicolon) does it. float is forth code. (http://github.com/lnmaurer/amforth-float ) It has been a long standing claim that a definition may

<    1   2   3   4   >