> When my Prog makes a call to 1793 PCL = 0 and PCLATH also > equals 0. If I execute the next ADDWF PCL,f it jumps back > to the start of the program. If I manual set PCLATH to 7 in > the SIM all goes as expected. > > Why does PCLATH not change on the screen when it is another > boundary. Is MPLAB going astray? I think you confuse PCLATH with the upper bits of the program counter. PCLATH will change *only* when you make it do so, not by program execution crossing a 256-instruction border. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads