Follow-up Comment #3, bug #27198 (project avr-libc): First, as I already said Im not so much into inline-assembler.
What comes to the nt's I don't know who converted it from nt to nt on the long way of copy and pasting. In the text file it's correct. I also haven't found a way to use ZH/ZL instead of r30, r31. In this line "ldi %[Idx], %[Rd]" I just needed a temporary Register to copy the NVM_CMD_READ_CALIB_ROW_gc. So i used this register. I almost believe that there is a better solution, which is easier to understand. The constraints I got from a German page (http://www.rn-wissen.de/index.php/Inline-Assembler_in_avr-gcc). It says "r" for any register, M for an 8 Bit Constant, m for a memory address (I believe?) and d for an upper register. So I think anything should be fine, but Im open to tips or hints. I've already tested the assembly within the attached text-file and it works so far. I can read all calibration row entries. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?27198> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev