> Van: Kennedy, William L > Aan: PICLIST@MITVMA.MIT.EDU > Onderwerp: multiple calls on 12c509 > Datum: maandag 11 januari 1999 18:29 > > Has anyone dealt with the issue of calling a sub that in turn makes multiple > calls and returns and then needs to return from the sub. Is there a way to > save the initial return address to use later on to get back? It seems that > there is only a 2 deep stack on this chip. > > THanks in advance for any suggestions. Store the "return" address (before calling) into (a) File register(s). "Return" to this adres by loading the PCL (/ PCLATH). Voilla ! a "pseudo" stack (1 address deep ;-) Greetz, Rudy Wieser