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 a

Re: [Amforth] amforth-shell.py idea

2012-10-14 Thread Enoch
On 10/14/2012 05:01 AM, Matthias Trute wrote: > 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: [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 f

Re: [Amforth] amforth-shell.py idea

2012-10-13 Thread 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 include some preprocessing in

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?

Re: [Amforth] amforth-shell.py idea

2012-10-13 Thread Enoch
On 10/13/2012 11:29 AM, Matthias Trute wrote: > 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 ove

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-11 Thread Erich Waelde
Hi Enoch, On 10/11/2012 09:03 PM, Enoch wrote: > This brings me to a more fundamental question which you, as Amforth's > BDFL, I feel, need to address. > > Amforth-shell.py turns the use of frt "&34 constant PORTA" definitions > in the code unnecessary as the shell script does these substitutions

Re: [Amforth] amforth-shell.py idea

2012-10-11 Thread Enoch
Hello Matthias, It was a short Python hacking, it turned out that I did not like it myself too :-) #py simply triggers the eval code in the patched amforth-shell.py. Yes, the code sent to the device is being modified by the shell according to the python expression that is embedded in the frt code

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 condition

Re: [Amforth] amforth-shell.py idea

2012-10-08 Thread Enoch
Hello again Matthias, Here's the patch at pastebin: http://pastebin.com/NbfGxU3C Thanks, Enoch. On 10/08/2012 01:36 PM, Matthias Trute wrote: > Hi, > >> On the at90can128, for example, one has to introduce "TCCR0 constant >> TCCR0B" before uploading lib/hardware/time0.frt >> >> How about exten

Re: [Amforth] amforth-shell.py idea

2012-10-08 Thread Enoch
Hi Matthias, 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: Two variables: avr - device name string py - a truth value 1st method: #py= avr=="at90can128" #py? "% TCCR0 c!" if py

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 >%

[Amforth] amforth-shell.py idea

2012-10-07 Thread Enoch
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 c! \ sto