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

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

WG: [avr-gcc-list] inline assembler


From: Stumpf Michael
Subject: WG: [avr-gcc-list] inline assembler
Date: Thu, 11 Oct 2001 12:25:22 +0200

Hi,
 
don't miss the stringify preprocessor token #
 
   __asm__("LDI " #myreg ",0xFF\n");
 
> Hello,
>
> If you want that the preprocessor does its job, you have to put the
> macro outside double quote ...
>
> #define myreg r16
> int main(void)
> {
>  ...
>  __asm__("LDI "myreg",0xFF\n");
>  ...
> }
>      
> Regards.
> --
> Philippe Giacinti - Alcatel Business Systems
> mailto:address@hidden
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
>
 


reply via email to

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