[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] [solved] avr1 and using the 16bit Z-pointer fails wit
From: |
Matthias Wenzel |
Subject: |
Re: [avr-gcc-list] [solved] avr1 and using the 16bit Z-pointer fails with avr-gcc |
Date: |
Wed, 06 Jan 2010 23:59:55 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Joerg Wunsch wrote:
>> 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)
>
> ldi ZL, lo8(pm(label))
> ldi ZH, hi8(pm(label))
>
> (lo8, hi8, and pm are operators, so the paren's are not strictly
> required.)
great. thanks. that does it - according to the disassembly at least ;)
mazzoo