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

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

[avr-libc-dev] eeprom_read_byte and clr ret_hi


From: Shaun Jackman
Subject: [avr-libc-dev] eeprom_read_byte and clr ret_hi
Date: Wed, 18 Nov 2009 16:53:10 -0700

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




reply via email to

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