> >Could an interrupt interfere and change the flags after the test, but before >the branch? Ok, I see that, but I was discarding that, because I write all the ISR vectors first, with save and restore of SREG, then add code to them as needed. I'll double check. (runs off to check. returns swearing mightily..) Ok, I was missing a restore of SREG. Guess where. In the unfinished INT1 ISR, which is disabled, but firing anyway. (I'm looking at bits 7,6 in GICR, which oddly seem backward somehow.) They are both zero though, which should prevent INT0 or INT1 from happening. Now, about INT1 firing off when it's disabled.. ?
Message
RE: [AVR-Chat] Sim problems, AGAIN.
2004-01-02 by David VanHorn