Hi Paul,

welcome to the list!

On 09/14/2012 09:31 PM, Paul Verbeke wrote:
> Hi,
>
> 1. I have an ATMEGA 328P Arduino board. I have loaded the prebuilt hex file
> and everything seems ok. However the key word does not seem to work as
> expected. If I type KEY and return it does nothing but it echos the
> characters back that are being typed. I was expecting AMFORTH to return
> after I hit a key and it would be TOS. If I type WARM and do the same thing
> it always returns 10 in TOS even if I type nothing. KEY? always returns a
> value regardless. Is there something else I need to do or set for this to
> work?

Let's see:
 > ver
amforth 4.9 ATmega328P ok
 > key<return><Z>
  ok
 > decimal .
90  ok

so this works for me as you expected it to work.

>
> 2. Also, the MARKER file in the library does not seem to work either.
>
I'm using this all the time and it does work:
 > words
test msg endmorse morse morseemit ...
 > marker --blubb--
  ok
 > : msg ." howdy, mate!" cr ;
  ok
 > msg
howdy, mate!
  ok
 > words
msg --blubb-- test msg endmorse morse morseemit ...
 > --blubb--
  ok
 > msg
ab ab ab ok
 > words
test msg endmorse morse morseemit ...
 >
so calling the marker does remove the last definition of " msg " 
from the wordlist and brings the older one back.

So I suspekt, your prebuild .hex files are maybe not up to 
snuff?? Where did you get them?

> 3. Is there a list of the .set want ... options that can be used?
>
Well, there are these in ./appl/template/template.asm
grep WANT_ ../amforth/trunk/appl/template/template.asm
.set WANT_IGNORECASE = 1
.set WANT_ISR_RX = 1 ; interrupt driven receive
.set WANT_ISR_TX = 0 ; send slowly but with less code space

There are lots more in the inner workings of the Atmel 
AvrAssembler2. I'm not sure, how much these are of use for 
hacking amforth.

Cheers,
Erich





------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
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