I had something similar happen when I ported from 16C74 to 12C509. I can't remember exactly what the problem was, but I do know I had something wrong which caused the fault you have - Either the ORG was wrong, the CBLOCK origin was wrong or the incorrect processor type defined/wrong .INC file included If you have recompiled and the fault doesn't go away, have a look at your LST file and make sure your data and code start at the addresses you expect. Regards, Neil -----Original Message----- From: Todd Brisebois [SMTP:tbrisebois@FPMX.COM] Sent: 08 May 1998 12:23 To: PICLIST@MITVMA.MIT.EDU Subject: Re: Strange and Mysterious... Make sure that if you have edited your code, you must recompile it. Even though it appears changed when you run the code it is using the instructions which were last compiled. Example: If you had a goto CONFIG statement on the third line of START which was then modified to remove the goto CONFIG, the simulation software would still goto CONFIG. Once the program is recompiled it is now using the newly modified code. Hope this helps Todd Brisebois > Hello! > > Its me again, sorry to bother you but I'm having a strange problem with > MPLAB-SIM. > > I am running a piece of code but on the third line of START the simulator > jumps back to a line in the CONFIG section. > > Any ideas why this is happening? > > Thanks, Michael Hearn > >