wenn du avr-gcc verwendest, kannst du deine asm-files im makefile unter asm-quellen auflisten:
Code:
# List Assembler source files here.
#     Make them always end in a capital .S.  Files ending in a lowercase .s
#     will not be considered source files but generated files (assembler
#     output from the compiler), and will be deleted upon "make clean"!
#     Even though the DOS/Win* filesystem matches both .s and .S the same,
#     it will preserve the spelling of the filenames, and GCC itself does
#     care about how the name is spelled on its command-line.
ASRC = ... (hier die asm-quelltexte mit leerzeichen getrennt)
einzelne anweisungen gehen mit
Code:
asm("ldi  R18,0xEC");
gruesse