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: Joerg Wunsch
Subject: Re: [avr-gcc-list] avr1 and using the 16bit Z-pointer fails with avr-gcc
Date: Wed, 6 Jan 2010 21:33:01 +0100 (MET)

Matthias Wenzel <address@hidden> 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.)
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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