> register unsigned char counter asm ("r3") Pointers live in register pairs, you must not specify an odd number.
However, I guess that specifying a GPR explicitly is not what you want? You can find some examples on the following page. The page is in german but the examples should give you some hints. http://www.roboternetz.de/wissen/index.php/Inline-Assembler_in_avr-gcc#Zugriff_aufs_SRAM regards Georg-Johann _______________________________________________________________________ Sensationsangebot verlängert: WEB.DE FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list