avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] eeprom_read_byte and clr ret_hi


From: Frédéric Nadeau
Subject: Re: [avr-libc-dev] eeprom_read_byte and clr ret_hi
Date: Wed, 18 Nov 2009 19:01:03 -0500

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 <address@hidden> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
>



-- 
Frédéric Nadeau ing. jr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]