andrew kelley wrote: > However, I think that it should be able to be done, Your method won't work because the PIC 16 has only one hardware call stack and it can't be read or written from software. Draw out what is on the stack at each of your steps and you will see it can't work. > step 0: Begin running routine 1 > step 1: Interrupt routine 1, goto routine 2, > step 2: Interrupt routine 2, goto routine 3, So now the total nested call state of routines 1, 2, and 3 are on the stack. > step 3: Interrupt routine 3, goto routine 1, Go where exactly? See how this doesn't work? ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist