>The AVR is inefficient with register access: > > In one project I wanted quick interrupt latency for lo-pri ints, so > I disabled the specific int at the start of its ISR, and enabled > global ints. This way the stack can't overflow, but latency is > short. > > It takes lots of instructions to disable an int, when it's register > is "high". > > After all I needed > > in sreg_save,SREG > in tmp,REGISTER > andi tmp,0xXX > out REGISTER,tmp > out SREG,sreg_save > sei > Very true, but in the pic you have to manually vector the int, checking first that it is in fact enabled, then wether it has occured (at least in the 84.) They all got warts, and the marketing guys want them all to look like princes. :)