Re: Simple but wrong code

David Kelly <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
On Jan 14, 2014, at 1:43 PM, Mark Litwack <[email protected]> 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, [email protected]
============================================================
Whom computers would destroy, they must first drive mad.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.