Hi, I'v forwarded this upstream as bug 2626: http://sourceware.org/bugzilla/show_bug.cgi?id=2626
On 4/13/06, Terran Melconian <[EMAIL PROTECTED]> wrote:
Package: binutils-avr Version: 2.15-3 The attiny26 supports some forms of the LPM (load program memory) instruction, but under certain circumstances GAS produces an incorrect error claiming that it does not. There are three forms of the LPM instruction. They are: i. LPM (r0 is implied destination) ii. LPM destreg, Z iii. LPM destreg, Z+ (reference: Atmel AVR instruction set reference, revision 06/99, page 79) Of these, the attiny26 supports forms i and ii but not iii. (reference: Atmel attiny26 datasheet, revision 1477G 03/05, page 170) avr-as will assemble form i, but refuses to assemble forms ii or iii. Since the datasheet states that form ii *is* supported on this part, I believe this to be a bug. Of course it is possible that it is an error in the manufacturer's datasheet, and that as' behavior is in fact correct, but barring explicit information to the contrary I must assume that the manufacturer's datasheet is authoritative.
-- Håkan Ardö