On most PICs you can use the GOTO START because of the way the stack is implemented as a circular list. Subsequent calls just wipe out the return address of the oldest calls. A notable exception is the 18C. Check your datasheet. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: "David VanHorn" To: Sent: Saturday, May 19, 2001 10:19 PM Subject: Re: Question about call/return > > > > Will it work? The question is: A subroutine is called by my > > program lots of times. If a special condition is achived, can I use "goto > > start" and forget the return? will it bring me to a "stack overflow"??? > > If you don't return, then each call takes a stack level. > When you run out, BOOM. > > -- > Dave's Engineering Page: http://www.dvanhorn.org > > I would have a link to FINDU here in my signature line, but due to the > inability of sysadmins at TELOCITY to differentiate a signature line from > the text of an email, I am forbidden to have it. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body