Re: [Amforth] Forward declaration for recursive word

2018-12-06 Thread Matthias Trute
Am Mittwoch, den 05.12.2018, 22:20 + schrieb Jan Kromhout: > Thanks Matthis, > > It is working now. > > Do you know if the construction “ TO and VALUE “ is available for > amForth? Yes, they are. http://amforth.sourceforge.net/TG/recipes/Values.html Matthias

Re: [Amforth] Error in Search Option on the Amforth site

2018-12-06 Thread Matthias Trute
Am Donnerstag, den 06.12.2018, 15:34 +0100 schrieb f.zelders--- via Amforth-devel: > I noticed that the Search Option on http://amforth.sourceforge.net/ < > http://amforth.sourceforge.net/> has a bug > > When I search for dup the first result is 7-Segment Digits < > http://amforth.sourceforge.net/

Re: [Amforth] buffer:

2018-12-08 Thread Matthias Trute
Am Donnerstag, den 06.12.2018, 20:26 + schrieb Jan Kromhout: > Last question for this evening. > When I make a variable : variable buffer 1024 allot => is this in > flash? your code does the following first it defines a word called variable (bad choice, since variable is already in use, never

Re: [Amforth] Error in Search Option on the Amforth site

2018-12-10 Thread Matthias Trute
Hi, > When I search for dup the first result is 7-Segment Digits < > ... > The link does not exist because of the '.rst' just in from of '.html' > When I remover '.rst' manually the link is correct. I just re-generated the whole website and the error seems to have gone. at least, searching fo

Re: [Amforth] d>s in amforth (double number > single number)

2018-12-11 Thread Matthias Trute
Am Dienstag, den 11.12.2018, 13:02 +0100 schrieb f.zelders--- via Amforth-devel: > In gforth the word d>s (It couverts a signed double drecision number > to a signed single precision number) is part of the default word set. > This word is not available in the default amforth word set. d>s is simpl

Re: [Amforth] get-recognizer & set-recognizer

2018-12-21 Thread Matthias Trute
Am Freitag, den 21.12.2018, 10:42 + schrieb Jan Kromhout: > Hello, > > Found the missing words!! > The package is now loading complete. > But it is not working. > When input a float or a double the system is crashing. That's bad. Can you fix it? > > Has someone some experience with this pa

Re: [Amforth] Need some help to construct an .asm file

2018-12-25 Thread Matthias Trute
Am Montag, den 24.12.2018, 17:51 + schrieb Jan Kromhout: > Hello, > > I wont to write my own routine in assembler as a learning goal. > Have looked into a lot of asm routines, but can’t figure out how to > add two doubles into R16 to R23 > and after the calculation put R16 to R19 back to the s

Re: [Amforth] microsecond delay

2019-01-06 Thread Matthias Trute
Am Freitag, den 04.01.2019, 18:46 + schrieb Tristan Williams: > > On 03Jan19 16:07, Jan Kromhout wrote: > > Hello, > > > > Is in AmForth a microsecond delay available? > > > > Cheers, > > > > Jan > > > > Jan, > > As far as I know, whilst AmForth does have a millisecond word 1ms, it > doe

Re: [Amforth] Reading from a TM1638

2019-01-06 Thread Matthias Trute
Am Donnerstag, den 03.01.2019, 15:49 + schrieb Jan Kromhout: > hello, > > The best wishes for 2019. From my side too :=) > > I’m try to get info from a TM1638 ( reading button status). > This is my simple routine, I read the lower byte first! > The code is simple and is straight forward > I

[Amforth] New release 6.8

2019-01-07 Thread Matthias Trute
Hi, It's been a long time since the last release so I felt it's time for a new one. The release 6.8 is an adventure release. It is for the brave ones. It contains experimental stuff that is not yet stabilized. It's more a snapshot release of a work in progress. I welcome feedback, patches etc.

Re: [Amforth] String

2019-01-18 Thread Matthias Trute
Hi Jan, > I try this and notting is happens. How do I use this to print a > string when I run a compiled word? please have a look at http://amforth.sourceforge.net/TG/recipes/Simple-Strings.html it should answer your question(s) Matthias ___ Amfo

Re: [Amforth] Error

2019-01-18 Thread Matthias Trute
Hi, > Where can I find some description of the used error numbers? > > I have now -4 This is an exception, as explained in http://amforth.sourceforge.net/TG/recipes/Exceptions.html it has a link to the complete table at http://amforth.sourceforge.net/TG/Architecture.html#exceptiontable HTH Ma

Re: [Amforth] Soft Serial Port

2019-02-16 Thread Matthias Trute
Am Freitag, den 15.02.2019, 08:21 + schrieb Tristan Williams: > > I've linked (below) some AmForth words I've written to help me use > the > second hardware serial port on an AVR atmega mcu, should there be > one. Really nice. Good work Matthias ___

Re: [Amforth] double-precision number to string conversion

2019-02-16 Thread Matthias Trute
Am Samstag, den 16.02.2019, 17:55 +0100 schrieb f.zelders--- via Amforth-devel: > Hello forth-professionals and fellow forth enthousiasts. > > I created a word that converts a positive double-precision number to > an 8 character string like this: > > : dpNumberToString ( d -- address count ) >

Re: [Amforth] Soft Serial Port

2019-02-16 Thread Matthias Trute
Am Samstag, den 16.02.2019, 13:13 + schrieb Tristan Williams: > Matthias, > > Do you have any objection to me putting up a link to my prebuilt hex > files for the ARDUINO MEGA 2560? No. Simon^wGPL says... ;) Matthias ___ Amforth-devel mailing l

Re: [Amforth] ATmega4809 Curiosity Nano

2019-03-07 Thread Matthias Trute
Am Mittwoch, den 06.03.2019, 08:56 + schrieb Tristan Williams: > I would like to try and see if I can get AmForth running on the > ATmega4809 IC and specifically on the ATmega4809 Curiosity Nano > [1] > > The ATmega4809 is a relatively new IC and so does not have a > directory > in amforth-

Re: [Amforth] 1-wire communication with DHT-11 connected to Arduino Uno's PB4

2019-03-20 Thread Matthias Trute
Am Mittwoch, den 20.03.2019, 18:31 +0100 schrieb Fred Zelders: > Hello Bruce > > Thank you for this information. > > But … could it be possible to use the primitives of the 1-wire > protocol in order to start/trigger a measure sequence and to read a > series of bits/bytes as a result of the meas

Re: [Amforth] Multiple uarts on ATmega2560

2019-04-08 Thread Matthias Trute
Hi, It's a little late to respond.. I'm impressed. Good work. May I put a link to your pages via the amforth cookbook? Matthias ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.n

Re: [Amforth] HiFive1 Rev. B

2019-05-20 Thread Matthias Trute
Hi Claus, > I saw an amForth for the HiFive1 board. Is there a relese for the > HiFive1 Rev. B board available? Sorry, there is no immediate plan to implement amforth on the rev.B platform. Matthias ___ Amforth-devel mailing list for http://amforth.s

Re: [Amforth] Amforth 6.8

2019-05-31 Thread Matthias Trute
Am Donnerstag, den 30.05.2019, 09:56 +0100 schrieb Martin Nicholas via Amforth-devel: > Taken me months to notice, but 6.8 still reports a "ver" of 6.7 from > env-forthversion.asm Thank you. In fact, for the AVR8 and MSP430 variants, version 6.8 is in fact 6.7 since no changes were made for them.

Re: [Amforth] Watchdog Timer on AVR8s

2019-06-02 Thread Matthias Trute
Hi, Thanks for your analysis. > This suggests that both the MCUSR and the WDTSR should be cleared on > reset. > > I've added a line: > out_ WDTCSR, zerol > to COLD which covers it. adding it to COLD in a central location is troublesome. Not all AVR8 have a watchdog at all and those who ha

Re: [Amforth] SPI interface on the arduino

2019-06-04 Thread Matthias Trute
Hi, > I need to read and write to the SPI interface (bus) on the arduino. > (pin 10,11,12,13) > Wich words are the best to use? The ones desccribed in the SPI recipe are the best current practice. http://amforth.sourceforge.net/TG/recipes/SPI.html The arduino hello world recipe shall give some

Re: [Amforth] I2C

2019-06-04 Thread Matthias Trute
Am Dienstag, den 04.06.2019, 18:39 + schrieb Jan Kromhout: > Hello, > > Ho do I set the parameters for the speed if the I2C to 400 > kHz? Thanks for any help. > > : init_i2c ( --- ) > \ init at 100 kHz > i2c.prescaler/1 #72 i2c.init > ; > Did you check http://amforth.sourceforge.net/TG/r

Re: [Amforth] Need some help with the SPI

2019-06-08 Thread Matthias Trute
Hi, > You can also use the following words to avoid c!@spi, which is > missing from the preassembled package for the Arduino: > > > \ send a byte, ignore received byte > : c!spi ( c -- ) > SPDR c! ( c addr -- ) > ; > > \ receive a byte, send a dummy one > : c@spi ( -- c) > 0 SPDR c! 1

Re: [Amforth] how to use bitmask:

2019-06-17 Thread Matthias Trute
Hi Jan, > I need to do a bitmask on register. The simplest operations are the ones documented in the source file \ Use it this way: \ PORTD 7 portpin: PD.7 ( define portD pin #7) \ PD.7 high ( turn portD pin #7 on, i.e. set it high- level) \ PD.7 low ( turn portD pin

Re: [Amforth-devel] Atmega 1284p

2010-08-15 Thread Matthias Trute
Pito, > Hi, There is the atmega1284p available (128k flash, 16k ram, dil40) > - drop in replacement of 32, 64 - so quite sexy chip. Do you plan to > support it? P. amforth has a utility named pd2amforth that creates the device specific driver files. All of the currently delivered controller files

Re: [Amforth-devel] 2constant, 2variable, 2!, 2@, 2drop, 2dup and (2variable) words

2010-08-18 Thread Matthias Trute
hi, > Yes, those are written in assembler - ready to be compiled into > the image during the assembly stage (so I don't need to upload them). Michael Kalus has written a smart tool that is able to convert any forth code to the special assembly notation. With that help you can use (almost) any for

Re: [Amforth-devel] i! vs. f!

2010-08-18 Thread Matthias Trute
hi, > Hi, let me ask following - why the write to avr flash in amforth > uses i when i is used in other context as well. Why not agree e.g.: > > f - flash internal - f!, f@ everything starting with f is already claimed by floating point words. The i@/i! is based upon an recommendation by Elizab

Re: [Amforth-devel] 2constant, 2variable, 2!, 2@, 2drop, 2dup and (2variable) words

2010-08-19 Thread Matthias Trute
Hi, > what about to somehow consolidate > everything available into a "the best of.." library in asm..? The idea is great. The big drawback is, that the assembly files are much harder to maintain. I prefer forth source whenever possible. With the help of Michaels tool it should be possible to g

Re: [Amforth-devel] SET-CURRENT (and MARKER)

2010-08-20 Thread Matthias Trute
Hi, in addition to Erichs notes > I wanted to install MARKER on my device, but the definition in lib/ans94 use > SET-CURRENT, which mysteriously seems to not be in my dictionary but is in > core/words. (Other words are missing too, like SET-ORDER). > > How can I correct this? I try to get amf

[Amforth-devel] Atmega support

2010-08-22 Thread Matthias Trute
Hi, I've understood that not everyone wants to use the full toolchain him/herself. So i changed my policy slightly from "publish only tested" to "publish that may work" ;=) > Hi, There is the atmega1284p available (128k flash, 16k ram, dil40) > - drop in replacement of 32, 64 - so quite sexy chi

Re: [Amforth-devel] floating-point

2010-08-25 Thread Matthias Trute
Hi Leon, > I've been working on a single precision floating point word set, and I > recently got addition/subtraction working. and a f* is already there :=)) Great work, Leon!! really! Matthias -- Sell apps to millio

Re: [Amforth-devel] Andy broke the ram barrier

2010-08-25 Thread Matthias Trute
Pito, > Hi, as Andy has broken the ram barrier with dil40 atmega there is a > lot of space for a bigger richer amforth! So the question is whether > the 32 shall be recalled as the smallest supported, so Matthias must > not consider the atmega8 limitation.. Its always easy to use more ressources.

Re: [Amforth-devel] Andy broke the ram barrier

2010-08-26 Thread Matthias Trute
Hi, > As the appetite comes with eating I {the lazy user} will now cry for > FAT32, double float, libraries for i2c and spi devices, dsp, etc. And you pito as the most interested and and least lazy user will send me the code for it :=)) > Bad news for amforth - as now (with 1284p) you are facin

Re: [Amforth-devel] 1284p compilation

2010-08-27 Thread Matthias Trute
Am Freitag, den 27.08.2010, 17:24 +0200 schrieb pito: > FYI - result of the compilation for 1284p (avr studio 4.18), device > from trunk: > > AVRASM: AVR macro assembler 2.1.42 (build 1796 Sep 15 2009 10:48:36) > Copyright (C) 1995-2009 ATMEL Corporation Thats the version I use too. so far ok >

Re: [Amforth-devel] .s on 1284p

2010-08-28 Thread Matthias Trute
Pito, > it is not stack address, but the 16557 does not fit somehow...p. current implementation is like : .s sp@ depth 1- 0 ?do dup i dup u. ( gives the "index" ) 2* + dup u. ( prints the address ) @ u.( prints the current content ) cr loop drop ; (just

Re: [Amforth-devel] Compilation errors with avra assembler

2010-08-29 Thread Matthias Trute
Hi Volker, > I've copied the template directory and get weird errors form the words > source files. > > I'm using amforth 3.9. > > Can anyone give me a comment to work with amforth and how to compile it > for ATmega32a? There is a simple answer: avra cannot be used. Use the Avr Assembler 2 fro

Re: [Amforth-devel] Compilation errors with avra assembler

2010-08-29 Thread Matthias Trute
Hi, > Would you consider adding .overlap > > http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRASM/Html/directives.html#OVERLAP/NOOVERLAP > > to places where the code generated overlaps: sound like a good idea. If it works for both assemblers I'll do it. May take a few days

Re: [Amforth-devel] Float testing - simple integration

2010-09-01 Thread Matthias Trute
Hi, just a side note: I was just pointed to a forth source library named "zen float" (e.g. 4th) that could be useful as well. At least to not do all the work again. I highly appreciate your work, Leon (and Pito) Matthias

Re: [Amforth-devel] Case sensitivity of amforth

2010-09-03 Thread Matthias Trute
Pito, you never give, yea? > the 4th is using a constant "casesensitive" for switching case > sensitivity on/off. I've found that only "compare.4th" is using this > constant (compares two strings). In C sources there is "comp_4th.c" > which does mention sensitivness, but not using the constant. C

Re: [Amforth-devel] Case sensitivity of amforth

2010-09-03 Thread Matthias Trute
Pito, > I do understand the issue with comparing words and not single chars > in you implementation, but tell me please - what is the major reason > for your hardcore position of not wanting to have a switch for case > sensitivity/insensitivity? I want a smart solution, not a fast and ugly one. A

Re: [Amforth-devel] Bug - ".s"

2010-09-09 Thread Matthias Trute
Pito, > > then I see at sp0 = 16383 is 0. Why the 111 is written to 16381 > (low) and 16382 (high) and not to 16382 (low) and 16383 (high)? Not > so important, only the alignment of words on odd addresses is > something unusual to see..P. That is a direct effect of placing the stacks at the last

Re: [Amforth-devel] Assembler - initial issues or bug

2010-09-09 Thread Matthias Trute
Pito, > Hi, I started with LP asm (amforth 4.0): > \ - Test AvrAsm - > : loadtos, 16 Y+ ld, 17 Y+ ld, ; \ define macro > : savetos, -Y 17 st, -Y 16 st, ; \ tosl=r22, tosh=r23 The assembler may use any register. But one has to be careful when changing registers used by amforth itself. The

Re: [Amforth-devel] HOW TO - Assembler in anmforth

2010-09-09 Thread Matthias Trute
Pito, > The example could be the timer int routine: > : tick_isr _one timer 2@ d+ timer 2! ; > which does "timer = timer + 1" where timer is double integer. I've > seen usart routines and Lubos' routines in asm, however generaly the > Q: > > 1. is there any recommended structure or frame for wri

Re: [Amforth-devel] HOW TO - Assembler in anmforth

2010-09-09 Thread Matthias Trute
him > 10. how the local .asm variables (used in asm rouitne shall be > handled (e.g. where in ram to place the local variables). If you use Lubos assembler, you can allocate RAM and use the address. The assembler is, after all, forth code which compiles machine code. When using the avrasm, there

Re: [Amforth-devel] [Req]Simulator for AmForth?

2010-09-10 Thread Matthias Trute
Hi 李雪愚, > I've got headache on debug the words on the board. I need a simulator for > amforth. Thats sad. I know of no s(usable) imulator for the avr's. The Atmel Development studio has a built-in simulator, but I never managed to get amforth running there. It simply crashes. > Or how to compil

Re: [Amforth-devel] comment ( n -- (xx) ) puts 0 on stack

2010-09-10 Thread Matthias Trute
Pito, > Hi, is this correct behaviour in respect to comment content? P. > > > : abcd1 ( n -- xx ) > .s ; > > > : abcd2 ( n -- (xx) ) nested comments are not allowed. I just tried your code with gforth (0.7.0) and it produces (other but) similiar strange output. The ( searches for the

Re: [Amforth-devel] HOW TO - Assembler in anmforth

2010-09-11 Thread Matthias Trute
Pito, I'll start here, the upper "half" will take more time. But make yourself clear, what do you want to achieve: add an assembly word to the initial hex file or implement it on a running system. The assemblers only look similiar, they are not inter-changeable. > Interrupts: The interrupt suppo

Re: [Amforth-devel] HOW TO - Assembler in anmforth

2010-09-11 Thread Matthias Trute
Hi, > > > First, from what I understand - Matthias please > > correct me if I am > > wrong - the "code" word creates a new word for you > > but > > it does not switch FORTH into the compilation mode > > (unlike ":" > > or "]"). > > > M? "code" creates the full dictionary header and sets the XT

Re: [Amforth-devel] HOW TO - Assembler in anmforth

2010-09-11 Thread Matthias Trute
Marcin, > on stack (use it or restore it to zero at exit). > > (Matthias: I noticed that techdoc says R22:R23 > are TOS and R24:R25 are W, in my case on ATmega328P > it's the other way around) Fixed, thank you. Matthias -

Re: [Amforth-devel] Floating point library - 4 primitives f/ f* f+ f-

2010-09-16 Thread Matthias Trute
Pito, > Hi Leon and Matthias, > enclosed pls find my little contribution to floating with amforth Great work. Thank you. > (:-)). > The library is provided as-is, no guarantees and warrantees, no > liability fo any direct, indirect, consequent damages or losses.. There is are test programs for

Re: [Amforth-devel] Marker etc.

2010-09-16 Thread Matthias Trute
Al, > I saw amforth and popped it on an ATMega 8. Works but very little code space. Yeah, atmega8 is more a mee-too system. Not really usable any more. If you really want to use such little systems, you will have to go back in time and use versions around 1.x or so. > So I dug up an ATmega 16

Re: [Amforth-devel] Floating point library - 4 primitives f/ f* f+ f-

2010-09-16 Thread Matthias Trute
Marcin, > Dnia 16.09.2010 Matthias Trute napisał/a: > > > > btw: I'm still working on the marker issue. strange case > > Matthias, > > Reverting change 918 to istore_nrww.asm fixes the marker issue. ind

Re: [Amforth-devel] Some nitpicking

2010-09-17 Thread Matthias Trute
Marcin, while checking all the old mails, i came across yours (and sorry for the delay, better late than never...) > Small tidbits from 4.1: all of them are now fixed. Thank you > .include "words/2literal.asm" > .include "words/2to_r.asm" > .include "words/2r_from.asm" > could go into some sep

Re: [Amforth-devel] Word header in asm

2010-09-17 Thread Matthias Trute
Pito, > Hi, > is there any expalnation available on what these > .dw $ff03; > > ff02 ff05 in the header of a ams word definition means? This is the combination of the string length (the lower half) and some flag information. $ff means: no special flag is set, $00 means immediate. Strictly s

Re: [Amforth-devel] Minicom Uploader

2010-09-17 Thread Matthias Trute
Hi Al, > I remembered that I wrote a simple upload program for the RCA 1802 a few > years > back that had a lot of the same serial comm issues (handshaking, etc). So I > pulled the code out and ported it for amforth. Probably not as useful for > Windows users though since iti depends on minico

Re: [Amforth-devel] Minicom Uploader

2010-09-18 Thread Matthias Trute
Al, > I don't know how to turn word wrap on in the minirc.amforth file which is why > you need the -w flag (or ^AW when running). Anyone know how to turn that on > in > the config file? not really the config file but an environment variable export MINICOM=-wC (this part of by .profile) Matt

Re: [Amforth-devel] "Help" word

2010-09-18 Thread Matthias Trute
Hi Pito, > Hi, > just as an inspiration - for people who use amforth with student for > education - in the FlashForth there is a nice worh "help" I like > (see ff36). You load the help and helpwords (~few kB) and: > help emit > emitc --Emit c to the serial port FIFO. FIFO is 46 > c

Re: [Amforth-devel] "Help" word

2010-09-18 Thread Matthias Trute
Pito, > Hi, > just as an inspiration - for people who use amforth with student for > education - in the FlashForth there is a nice worh "help" I like > (see ff36). You load the help and helpwords (~few kB) and: > help emit see repository: lib/help.frt and lib/help-words.frt. the later will be aut

Re: [Amforth-devel] "Help" word

2010-09-18 Thread Matthias Trute
Hi, > Matthias, YES I see now, you just updated the trunk\lib (i'm using > tortoiseSVN under xp)!! > Thanks - So the next step is to start fill the help-words.frt, am I > right? Yes, absolutly. But I doubt that a automatically generated file with _all_ words inside is really what we want. Its hu

Re: [Amforth-devel] How TO - dict_x for bigger atmegas

2010-09-18 Thread Matthias Trute
Pito, > Hi, > this is a Q I'am carrying with me for a long time and therefore I > would kindly ask you following: > 1. there is a lot of various dict_x.inc. From time to time I have to > add something somewhere. To be honest, I am not sure what I am > doing, as I put required .asm simply into dict

Re: [Amforth-devel] How TO - dict_x for bigger atmegas

2010-09-19 Thread Matthias Trute
Pito, > E.g. first idea: > ## do not touch > dict_core.inc > dict_appl_core.inc > ## << do not touch # > above .incs are called by amforth.asm!! And those files are from the appl// directory. amforth does not provide them. Its up to the developer to fill them

[Amforth-devel] New version 4.2

2010-09-19 Thread Matthias Trute
Hi all, I've received complaints that I dont announce new release here, so here it comes. A new release is derived from trunk and is available now. Not really surprisingly it is labled 4.2. The main reason for it is the regression for marker, which should work fine now (again). Leons floating po

Re: [Amforth-devel] Floating point - fsin, fcos, ftan

2010-09-26 Thread Matthias Trute
Hi Pito, great work, thank you. I've put it into the application tree of the sourceforge subversion tree. Matthias -- Start uncovering the many advantages of virtual appliances and start using them to simplify applicat

Re: [Amforth-devel] Updated minicom uploader

2010-09-26 Thread Matthias Trute
hi Al Thank you for the update > http://dl.dropbox.com/u/360343/am4up.c > > A small change so that if the last character sent is not a end of line, the > uploader sends an end of line. I put is right beside to the floating point library into the subversion tree. Matthias -

Re: [Amforth-devel] Interrupts in Forth

2010-09-26 Thread Matthias Trute
hi Al, > > Howeer, if you use int! to set a "Forth" interrupt vector, the default isr > sets the "T" flag when an interrupt trips. It also stores the current vector > in > a location where the interpreter can find it. > > When the interpreter is about to dispatch it looks to see if the T flag

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 definiti

Re: [Amforth-devel] >FLOAT

2010-09-30 Thread Matthias Trute
hi Pito, > > Will do, although I think the real solution is to > > have it included by default > > in amforth -- it's listed on > > after > > all. > sure, some needs to be .included.. d= is not needed for every amforth system. The default contains the min

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] see deferred words

2010-10-06 Thread Matthias Trute
Hi > Hi. > > how can I see what word a defered word will execute? > > gforth: > > defer test ok > : xxx 11 22 33 . . . ; ok > xxx 33 22 11 ok > .s <0> ok > ' xxx is test ok > test 33 22 11 ok > .s <0> ok > see test > > : xxx >11 22 33 . . . ; > latestxt > Defer test > IS test > ok

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 leas

[Amforth-devel] Reference Card

2010-10-25 Thread Matthias Trute
hi all, I recently spent some time on updating the documentation headers in many assembly files. The result is a pdf file on the project home page http://amforth.sourceforge.net/refcard.pdf please let me know if its worth the work or if I should better drop it. It larger than expected (13 pages

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] Editing command line - backspace issue

2010-10-25 Thread Matthias Trute
hi Pito, > There are terminals sending 0x7f (delete) instead of 0x08 > (backaspace) when backspace key is hit. And these terminals can be customized to work properly. > Maybe 'accept' could be > modified by Matthias to process 0x7f as well. Terminals are a nightmare. Mine here sends a multi-byt

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 > "traditiona

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

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] 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 f

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,

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] 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-4.2 - progress, suggestion

2011-01-28 Thread Matthias Trute
Elliot, > I'm having a slightly better time with AvrStudio4 - by taking file > fragments from the Linux to XP (Gnome Document Viewer). Learned that > unix file paths are understood. In the rare cases in which I use the studio under windows, I've never had any problems with the slash/backslashes

Re: [Amforth-devel] amforth and v-usb

2011-01-28 Thread Matthias Trute
Pito, > "the V-USB is a software-only implementation of a low-speed USB > device for Atmel’s AVR® microcontrollers, making it possible to > build USB hardware with almost any AVR® microcontroller, not > requiring any additional chip..." > http://www.obdev.at/products/vusb/index.html > > Did some

Re: [Amforth-devel] makefile correction?

2011-01-31 Thread Matthias Trute
hi Elliot, > I am now looking at using avra under linux. Avra doesn't compile for me, > so I am trying the static version. As recommended, I have downloaded > amforth by svn, ... Accordingly, it appears that the makefile lines > > DIR_ATMEL=../../Atmel > > and > > AVRA=avra -I $(DIR_ATMEL)/Ap

Re: [Amforth-devel] compiling avra

2011-01-31 Thread Matthias Trute
Hi, Elliott Chapin wrote: > Makefile.am: required file `./NEWS' not found > Makefile.am: required file `./ChangeLog' not found > > As a late friend might have said: It bagles the mind. Why might such > files be needed? an easy and quick fix is simply create the files ("touch NEWS Changelog") but

Re: [Amforth-devel] FOSDEM slides/proceedings are avaliable on amforth.sf.net

2011-02-16 Thread Matthias Trute
hi Erich, > > some might have seen my talk at FOSDEM 2011 ... well done! Thank you very much. Matthias -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors b

Re: [Amforth-devel] MCU in template.asm

2011-02-17 Thread Matthias Trute
Hi, > The makefile says that the MCU is also to be specified in template.asm, > but there appears to be no example line. The definitions moved over time from one file to another, the remark in the template/makefile is simply an artifact, please ignore it. Whats relevant is the line INCLUDE=-I $

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 th

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 numb

Re: [Amforth-devel] Ultra Low Power operation

2011-04-04 Thread Matthias Trute
Hi, > Hi, as the amforth will not be a subject of power computing let me > ask the experts following: > 1. would it be possible to create a mechanism where amforth/atmega > will be run on _very_ low power - basically powerdown or sleep I did not yet implemented it, but the strategy should be str

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 start

Re: [Amforth-devel] Starting amforth

2011-04-10 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 >> >> \ example: : main ( -- ) begin led-on 1000 ms led-off 1000 ms key? >> until ; ' main is turnkey > Just t

Re: [Amforth-devel] Starting amforth

2011-04-10 Thread Matthias Trute
Hi, >>> Yes, UNTIL consumes a flag. IF consumes a flag too. > >> OK. Does amforth's words page have then error in if ( -- addr ) >> ? shouldn't that be ( f -- addr) Also until ( addr -- ) >> looks wrong. (f -- ) as it is making boolean decission. > > You are right, that has to be fixed. IF

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 thi

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 documente

[Amforth] New version: 4.3

2011-05-01 Thread Matthias Trute
Hi all, its been a long time since the last release, but you dont have to wait any longer now. The new release has two important changes: internally it works with a new way to deal with the words (poorly documented however), more important are naming changes for memory access words: e@ -> @e. Ma

[Amforth] Release 4.4 tagged and published

2011-05-24 Thread Matthias Trute
Hi, I've just tagged and published a new release named 4.4. Noteworthy changes are - The Game of Life with terminal output (requires controllers with at least many KB RAM, otherwise make the world small enough). A queens puzzle solver as well (more kind of a benchmark however). - The refe

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] Migration 4.0 to 4.4.

2011-05-25 Thread Matthias Trute
Pito, > Is there any recommendation on migration from 4.0 to 4.4? P. The general rule is: check the changelog on the website. There I (try to) document any changes that I think may be important. If in doubt for any particular word, just check the svn repository. Every commit has a log entry as w

<    1   2   3   4   5   6   >