From: Matthias T. <mt...@we...> - 2008-05-07 08:40:35
|
Hi all, > I'm currently trying to set up Amforth on an AT90CAN128 evaluation board, > and was very thankful for your input yesterday. That was helpful indeed. Thanks to all that found it out. The reason that amforth does not work on 128KB flash controllers is that temp7 is mapped to zl. My strong believe that the warning the assembler produces can be ignored was based upon the fact that amforth works fine on smaller atmegas. This and that I did not tested the final release on the atmega128 but a intermediate version with the 2.7 version prompt led to the confusion. Sorry about that. > Changing temp7 to temp5 in the macro definitions only does part of the > trick. Well, it does not really solves the problem. This evening I'll commit a change into the repository that solves the problem (hopefully, I'll _do_ the test on my can128). > compile a definition as simple as this: > > : test 1 2 + . ; This particular problem is in the division routines. They use all the tempx registers, so mixing temp5 with temp7 disruptes the division completly. And division is used in number conversion... > I'm a bit perplexed on why the colon compiler code should work on an > ATmega32. The problem is not related with the colon compiler. Bye Matthias |