|
From: | Don Kinzer |
Subject: | RE: [avr-gcc-list] Compiler error creating ISR prologue? |
Date: | Thu, 12 Aug 2010 10:34:56 -0700 |
>r1 permanently holds 0. Actually clr r1 is redundant. Not permanently. Some instructions, like mul and its relatives, modify r1. An ISR cannot rely on r1 being zero on entry and must restore its value on exit. Don Kinzer
[Prev in Thread] | Current Thread | [Next in Thread] |