Magnus Johansson schreef:
I totally get the second and third reads. But the first one, just moving
r24 to r17 will only work if r24 is only 0x00 or 0x01 not otherwise...?
What should I do?
Well I can't see all assembler so this is a bit of a guess. GCC is
probably going to do a conditional load. Since result/r17 could be
loaded after the first call it will do so. So it will probably generate
a clr and conditional ldi r17, 1 or something alike.
It would help if you provide all of the assembler between the first and
the second call.
HTH
Wouter
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list