avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] avr1 and using the 16bit Z-pointer fails with avr-gcc


From: Matthias Wenzel
Subject: Re: [avr-gcc-list] avr1 and using the 16bit Z-pointer fails with avr-gcc
Date: Wed, 06 Jan 2010 22:36:13 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]