--- In AVR-Chat@yahoogroups.com, Jim Wagner <wagnejam99@...> wrote:
>
> I believe that the ONLY way to mask interrupts while single-stepping is to clear the IE flag bit in the Status Register.
S6 has an option to "hide" the interrupts from you, but it doesn't seem to work very well yet. You can turn off specific ints in S4 while stepping, just clear the appropriate enable bits. You can also just disable all.
I will frequently use a debug equate for this.
.equ debug = true ;
.... Init code happens... then just before main where I would SEI.
.if debug
; leave ints off for debug!
.else
sei
.endifMessage
Re: How to set interrupt mask whilst single stepping
2013-02-25 by David V