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

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

Re: [avr-gcc-list] Accessing C sram locations in inline asm


From: Grant Stockly
Subject: Re: [avr-gcc-list] Accessing C sram locations in inline asm
Date: Fri, 06 Sep 2002 12:13:50 -0800

At 09:02 PM 9/5/2002 -0700, Theodore A. Roth wrote:
My guess is that the assembler doesn't know what sram_byte is. You should be
using constraints in your asm statements (the "::" part). If you don't know
how to do this, you might want to read this:

http://freesoftware.fsf.org/download/avr-libc/doc/avr-libc-user-manual/inline_asm.html

I tried. asm volatile("lds r24, %1" :: "label" (sram_byte) ); failed no matter what I tried. (Subtracting the memory start offset, etc.

Grant

avr-gcc-list at http://avr1.org



reply via email to

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