[Top][All Lists]
[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: |
Weddington, Eric |
Subject: |
RE: [avr-gcc-list] avr1 and using the 16bit Z-pointer fails with avr-gcc |
Date: |
Wed, 6 Jan 2010 13:26:29 -0700 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Matthias Wenzel
> Sent: Wednesday, January 06, 2010 2:01 PM
> To: address@hidden
> Subject: [avr-gcc-list] avr1 and using the 16bit Z-pointer
> fails with avr-gcc
>
> Hi list,
>
> I have a problem practically using the Z-Pointer on an AVR1
> core (attiny15)
>
> 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?