|
From: | Ram Kumar Rengaswamy |
Subject: | [avr-gcc-list] Using register r0 and r1 |
Date: | Tue, 12 Sep 2006 14:12:37 -0700 |
Hi,I am using registers r0 and r1 in a custom assembly routine within a large C application.
I save and restore r0 and r1 at the beginning and end of my routine.I have a lot of interrupts in my application. Do the interrupts save and restore r0 and r1 as well (if they use them ?). 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 ?
Thanks, -Ram
[Prev in Thread] | Current Thread | [Next in Thread] |