> In my 16F628 program I call a subroutine that waits for an event to happen. > If the event does not happen within a certain length of time can I use a > goto instruction to restart the program from a known point, without using a > return instruction to pop the return address back off the stack ? Yes. I've done this. In one case I used the RB0 interrupt as an externally forced GOTO 4. > I know this will cause a stack underflow(?) Overflow, actually, but that is only from the debugger's point of view. > condition, but since the stack > is a circular buffer surely it won't matter because subsequent calls will > have the required return to go with them Right. ******************************************************************** 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