Steve Smith wrote: > I have a program which needs to return to stack level 0 from different stack > levels normally 2 to 5. Is there any way of purging the stack or is it not > necessary ? When in simulation MPLAB gives stack overflow after a couple of > iterations. Steve, as you're returning to level 0 of the stack there is no need to purge outstanding stack entries. The stack on PIC's is actually circular, so any particular stack entry can always be considered the zero'th entry. MPLAB is trying to be too helpful, and its simulation is innacurate. ___Bob