Thanks heaps Lars,
I thought I had done something wrong in my porting of the at9can128.asm to
my atmega128.asm file, you are correct temp7 is trashing the zh register, I
confirmed that by
running AVR studio and debugging the code in the simulator. The device
resets each time after DO_EXECUTE, changing to temp5 makes the code run
normal.
I will try it on the mega128 hardware when I get home tonight.
I notice that both temp6 and temp7 overlap r30/r31 so maybe we need to get
rid of both temp6 and temp7.....
Regards,
Bernard.
On Tue, May 6, 2008 at 11:28 PM, Lars Jonsson <la...@ze...> wrote:
> Hi,
> Maybe this is some regression (it must have worked some time I guess): I
> had
> a look the at at90can128.asm file and the readflashcell and writeflashcell
> will not work, they trash the zh register since temp7 is the same as zh.
> Maybe just change to e.g. temp5.
> /Lars Jonsson
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Amforth-devel mailing list
> Amf...@li...
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>
|