> org 4 > > bsf SOME_FLAG,bONE_SECOND_INT ;record the event > > RETURN ;exit with interrupts disabled First, you still have to remove the interrupt condition. Second, if you're just going to set a flag in the interrupt routine then check that flag in the foreground code, you might as well check the interrupt condition flag in the foreground code directly with interrupts off. Despite these specific points, I agree with the general strategy of doing as little as possible in the interrupt routine. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu