From: <ha...@hu...> - 2007-02-26 15:31:27
|
Hi, I found amforth yesterday and was very happy about that! I'm teaching my son Forth as the first programming language and it would be very cool if he could have some fun with an AVR. I am now trying to run amforth-1.3 on an atmega8l-8pi. Compiling and flashing the software went fine, and I get the startup banner. Interactive commands work, but if I try to define a word, the system crashes and I seem to need to reprogram the eeprom to recover. Does anyone have a hint? amforth 1.3 > 1 2 3 + + . 6 ok > words up 0 1ms >< cmove> i! i@ i sp! sp@ rp! rp@ +! rshift lshift 1- 1+ not xor or and /mod 2* 2/ invert * + - 0> 0< > < 0= = 0<> <> r@ >r r> rot drop over swap ?dup dup c@ c! ! @ e@ e! abort execute exit noop ver interpret .s idump depth rp0 sp0 compile immediate recurse ( \ user constant variable [ ] ; : does> create <reso lve <mark >resolve >mark pause 'pause quit find word number char endcase endof o f case +loop loop do again until repeat while begin then else if throw catch han dler ['] ' words type itype ." digit accept . sign #> #s # <# hold count space c r max min abs mod / negate 'turnkey heap edp bl hex decimal , allot here head dp key? 'key? key 'key emit? 'emit? emit 'emit hld pad tib #tib >in base state lit eral rx0? rx0 tx0? tx0 intvector intcounter ok > : foo 1 2 + . ; ?? FFF3 C Thanks! Hans |