Glad to find this post. It showed me how to embed assembly code in
the C code. Does anyone know if there is some ICCAVR documentation
introducing how to embed assembly code in the C code? I cannot find
in their help documentation at all.
Thanks!
Yang
--- In AVR-Chat@yahoogroups.com, jay marante <jaythesis@y...> wrote:
> i have this code with ICCAVR:
>
> TCCR1A |= (1<<COM1A1)|(1<<COM1A0);
>
> i wanted to replace that code with this assembly code:
>
> asm("SBI TCCR1A,COM1A1+COM1A0\n");
>
> because i found out that the assembly code that the compiler
generate has three sets of instructions. i think that if i replace
the C code with the corresponding assembly code, i might optimize the
flash memory.
>
> but i get this error when i compile it:
>
> "absolute expression expected"
>
> what's wring with my code? did i get it right?
> thanks for the help.
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! MessengerMessage
Re: asm in ICCAVR
2004-06-30 by Yang Wang
Attachments
- No local attachments were found for this message.