[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] ldd/lds and macro combination not work
From: |
Klaus Rudolph |
Subject: |
[avr-gcc-list] ldd/lds and macro combination not work |
Date: |
Sun, 24 Mar 2002 23:23:28 +0100 |
Hi all,
if i have two ram adresses
.data
adr1:
some bytes defined here
adr2:
some more bytes....
and use in my programm:
ldi YL, lo8(adr1);
ldi YH, hi8(adr1);
....
ld R17, Y
and R17, R18
std Y+(adr2-adr1), R17 ;error!
the assembler want a constant! But this is constant at all.
Subtraction of two constants give a constant or? :-)
There is no problem with adress subtraction with other mnomics
there.
Any idea?
Klaus
avr-gcc-list at http://avr1.org
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] ldd/lds and macro combination not work,
Klaus Rudolph <=