Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

asm in ICCAVR

2004-06-03 by jay marante

i have this code with ICCAVR:

TCCR1A |= (1<
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! Messenger

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.