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

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

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


From: whiteman
Subject: Re: [avr-gcc-list] inline asm problem
Date: Fri, 13 Feb 2004 17:33:21 +0800

hi,Ilhom Djalilov!
        
                 Sorry, I have check my avr-gcc version again. My winavr is 
WinAVR-20030913-bin-install. but The avr-gcc version is 3.3.1,not 3.3.2. Is the 
20030913 not the latest? where can download the latest version?


======= 2004-02-13 13:35:00 :=======

>Hello Artur,
>
>Thursday, February 12, 2004, 12:24:49 PM, you wrote:
>
>AL> whiteman wrote:
>
>>> hi,all:
>>>        I want to write a simple inline asm statement in "main" function.
>>> but when compiling the source,
>>> I always received a error message "pwm.c:27: error: impossible constraint 
>>> in `asm'". what's
>>> meaning?
>>> My inline asm is :
>>>                       asm volatile("sbi 0,1" : "=I"(PORTC) : "I"(6));
>
>If you use a new version of the compiler, you should try this:
>
>#define PORTC_ 0x15
>asm volatile("sbi 0,1" ::"I"(PORTC_),"I"(6));
>
>Don't forget, that in newer versions of avr-gcc PORTC is SFR, not a
>constant.
>
>
>--
>Best regards,
> Ilhom                            mailto:address@hidden
>
>
>
>_______________________________________________
>avr-gcc-list mailing list
>address@hidden
>http://www.avr1.org/mailman/listinfo/avr-gcc-list

= = = = = = = = = = = = = = = = = = = =
                        

Regards
                                
        whiteman
address@hidden
          2004-02-13






reply via email to

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