avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Using register r0 and r1


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Using register r0 and r1
Date: Tue, 12 Sep 2006 23:26:33 +0200 (MET DST)

Ram Kumar Rengaswamy <address@hidden> wrote:

> I have a lot of interrupts in my application. Do the interrupts save
> and restore r0 and r1 as well (if they use them ?).

Of course.

> Also I read that r1 is assumed to be zero by all C code. Do the
> interrupt handlers explicitly save and clear r1 prior to using them
> ?

Of course.

Btw., a quick glance at the generated assembly code for an interrupt
handler should have told you...
-- 
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]