Dave, > Fine, so ldi R31,high(Table_Loc*2) as above, but what about the low byte? > If the low byte has the MSB set on entry, then that needs to get into > the LSB of the high byte, no? Not for me, at least not on the MEGA32 I'm running it on. It seems to run fine > Worse, if you're in a M128 and putting the table near the end of the > code space, because the MSB of the high byte needs to be put in bit 0 > of the RAMPZ register for the ELPM instruction. yeah, fair point, but as most of the AVRs don't have 128K of memory it shouldn't be an issue. Paul
Message
Re: [AVR-Chat] Challenge
2005-06-16 by Paul Maddox