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

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

[avr-gcc-list] Inline assembler question


From: Marko Panger
Subject: [avr-gcc-list] Inline assembler question
Date: Mon, 16 Jun 2003 23:0:25 +0100

Hi all,

My nervous are satrting to, because I am unable to load and address of a global 
defined variable in the inline assembler. I would like to do something like 
that:

Global var:

uint8 myVar;

later...in a function..
-------------------------

asm volatile "ldi r22, %A1 \n" \
                                        "ldi r23, %B1 \n" \
                                        ::"m"(myVar));

But the thing doesn't want to know to copile. I must be doing something wrong 
with the variable constraint and I would ask if someone knows how to solve this.
        

Best regards. 

Marko Panger




reply via email to

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