>> Can l write a macro or something that can detect what page of memory l am in and change PCLATH appropriately before l write to PCL...??? So l dont have to go through and change it all as my code grows/shrinks...?? << Yes, you can, but you can also use mine: ; ;******************** ; ; Macro MYPAGE ; ; Sets PCLATH to the current code page. W is trashed. ; mypage macro if fam_17 ;17Cxxx processor ? movfp pcl, wreg ;read PCL to load PCH into PCLATH exitm endif local here setpage here here endm ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST