> > > 3. Simplified access to routines in another page. Uses extra stack level. > > Call Anysub0 from page0, call Anysub1 from page1. > > > > page0: > > > > ANYSUB0:BSF PCLATH,3 > > CALL ANYSUB1 > > BCF PCLHATH,3 > > RETURN > > There is no need to use an extra stack level. Just GOTO the target routine > and let it return to the caller directly. The CALL is there so that the PCLATH can be fixed up (BCF PCLATH,3) before returning to the caller. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu