avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] Passing parameters to asm functions


From: Joerg Wunsch
Subject: Re: [avr-chat] Passing parameters to asm functions
Date: Thu, 20 Mar 2008 16:56:13 +0100 (MET)

Kreyl <address@hidden> wrote:

>   It  seems  that compiler passes params in r24 and r25 in most cases,
>   and  sometimes  uses  Y pointer. Where exactly should I know what to
>   use?

That's called the ABI (application binary interface), and is
documented in the FAQ:

http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_reg_usage

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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