I'm simulating something for the PIC16F877 with MPLAB SIM, and I'm = getting this wierd issue with PCLATH. I originally had an instruction operating on PCL and the address of the = instruction was 0xFF. That in itself caused problems, as PCLATH did not = change, so the code went back to 0 (I happened to be adding 0 to PCL in = that particular portion of the simulation). I found that problem, and = just moved the entire segment of code down 3 steps (just to be sure) = with NOPs Now, when I do a goto 0x102, which should work, PCLATH does not update, = causing incorrect simulation, of course. Any ideas? Brendan -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body