For switchin page i recommend the next step: 1. Put your principal routine in page 0 2. In the other pages put only rutines that you can call from page 0 3. For call one routine from a page different of page 0 do the next... EXAMPLE FOR ROUTINE IN PAGE 2 CALL FROM PAGE 0 bsf STATUS,PA1 call rutine bcf STATUS,PA1 . . . PAGE 2 rutine . . return Regards Francisco Armenta "CUTTLER!" wrote: > Ok, I am new to the PIC line and I am looking for an answer to a basic PIC que stion... > > I am using the PIC16C57. (Kewwl) and the question has to do with the bank swit ching and sub routines. > > Q. I have basically put the sub routines into the first bank with a little bi t of code and now the code is spilling over into the second bank. Do I have to basically copy the subroutines into the second bank or can I access the subs fro m the second bank (Presetting the upper bits of course) and still have it return correctly without worrying about the upper bits? > > The book that I have doesn't really go into that much detail. > Personally I think that this is the weakest feature of this micro.... > > Carl Bright (CMC) Communications Mfg. Co. > cpbright@ionet.net > www.ionet.net/~cpbright > Leave a message and I will be paged > automatically Content-Type: text/x-vcard; charset=us-ascii; name="briones.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Francisco Armenta Content-Disposition: attachment; filename="briones.vcf" Attachment converted: wonderland:briones.vcf 2 (TEXT/CSOm) (000099E0)