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

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

Re: [avr-gcc-list] inline assembler problem


From: Michael Jochum
Subject: Re: [avr-gcc-list] inline assembler problem
Date: 17 Aug 2001 18:11:02 +0200

hi!

thanks - that was the problem
how stupid :)

best regards,
michael.

On 17 Aug 2001 08:22:39 +0200, Christoph Plattner wrote:
> The varible "bit" is an input not an output parameter !!
> So it is in the wrong line of the __asm__ __volatile__ statement !
> I think you have to write:
> 
>       __asm__ __volatile__ (
>               "code...." "\n\t"
>               .
>               .
>               "code...." "\n\t"
>               : "=r" (crchi), "=r" (crclo)
>               : "0" (crchi), "1" (crclo), "=r" (bit)
>               : "r24", ....   << registers that may be modified and
>                                  the compiler has to concern about !
>       );





reply via email to

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