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.

-- 
Julius 



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to