http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_reg_usage This explain the why. Not sure about the ABI
On Wed, Nov 18, 2009 at 6:53 PM, Shaun Jackman <[email protected]> wrote: > eeprom_read_byte returns a uint8_t. Why does it clear r25? > eerd_byte.S: > clr ret_hi > > Does the AVR ABI require that r25 be zeroed in a function returning a > single byte? If not, this instruction could be removed. > > Cheers, > Shaun > > > _______________________________________________ > AVR-libc-dev mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/avr-libc-dev > -- Frédéric Nadeau ing. jr _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
