> Ok so all this PCLATH setting bits are required if you call or goto accross > a page boundry. What happens when normal program flow carries you over a > boundry? Does PCLATH get updated automatically? or is it still up to you to > set it. > > Say my program has a massive init sequence and the starting code runs > halfway into page 1. When i then issue a call to a procedure ( also located > in page 1 ) will pclath be set to page 1 or must i set it myself? In other > words did it update itself when program execution flowed from page 0 to page > 1? This has been beat to death many times. Check the archives (or better yet, read the manual). The short answers: 1 - Nothing happes to PCLATH automatically. 2 - It is best to avoid having code within a routine or module cross a page boundary. ******************************************************************** 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