avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] revised:problem with inline assembly


From: Björn Haase
Subject: Re: [avr-libc-dev] revised:problem with inline assembly
Date: Tue, 20 Sep 2005 07:40:42 +0200
User-agent: KMail/1.7.1

varsha wrote on Dienstag, 20. September 2005 06:57 :
> __asm__ __volatile__
>    (
>     "lsl crc0"     "\n\t"                        //this doesn't work
>     "rol crc1"     "\n\t"                        //it gives error as
> constant value required "rol crc2"     "\n\t"
>     "rol crc3"
>    );
You need to learn how to use the asm statements. There is a description in 
both, the manual for avr-libc and gcc itself. You will need 3-4 parameters 
for a asm: 
1.) The asm code
2.) Description of the registers/memory that is written
3.) Description of the input parameters
4.) Description of the clobbered registers and clobbered memory (if any).

Bjoern




reply via email to

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