[Top][All Lists]

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

Re: [avr-gcc-list] Simple but wrong code

From: David Kelly
Subject: Re: [avr-gcc-list] Simple but wrong code
Date: Tue, 14 Jan 2014 14:04:53 -0600

On Jan 14, 2014, at 1:43 PM, Mark Litwack <address@hidden> wrote:

> I thought Todd's suggestion would have nailed it for sure...  And
> David is right you don't need the reti(); it is only used when writing
> a naked ISR.  Who knows what evil is lurking in the stack on a
> premature return.

You don't return to where you thought you'd return.
And registers don't have the contents they had when the ISR was dispatched.
Anything is possible.

David Kelly N4HHE, address@hidden
Whom computers would destroy, they must first drive mad.

reply via email to

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