[Top][All Lists]

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

Re: [avr-gcc-list] assembly-c mix and interrupts

From: Julius Luukko
Subject: Re: [avr-gcc-list] assembly-c mix and interrupts
Date: Thu, 19 Nov 2009 15:34:16 +0200
User-agent: KMail/1.11.2 (Linux/2.6.28-16-generic; KDE/4.2.2; x86_64; ; )

On Thursday 19 November 2009, darkschine wrote:
> Before I continue, I would like to suggest a resolution to my problem. I am
> using the ATmega328P
> My assembly code follows a standard that ALL registers used are pushed and
> popped from the stack. However, my assembly code does NOT store the SREG.
> Could this be causing my problems?

You can do next to nothing without modifying the SREG. Why don't you add 
pushing the SREG also to the stack. I wouldn't dare to not to save it.


reply via email to

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