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

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

RE: [avr-gcc-list] Compiler error creating ISR prologue?


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




reply via email to

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