Weddington, Eric wrote:
>> -----Original Message-----
>> I don't know how to load a label address to Z, usually I'd 
>> want to do it
>> like
>>
>> ldi ZL,lo8(label<<1)
>> ldi ZH,hi8(label<<1)
>>
>> but avr-gcc doesn't like the shift (nor *2) construction. 
> What was the exact error message that it gave?

sorry for being incomplete, i forgot that:
test.S:43: Error: invalid sections for operation on `L0' and `label'
test.S:44: Error: invalid sections for operation on `L0' and `label'

(I have no clue where "L0" comes from...)

and I have the current ubuntu avr-gcc, avr-gcc (GCC) 4.3.3

mazzoo


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to