myke predko wrote: > > >I have recently discovered the PIC16C84 - it is indeed a wonderous chip! > > However, I struck a problem with my > >first large-ish program. > > > How are you jumping to the return/retlw? > > If you are using a computed jump (ie movlw EndOff/addwf PCL, f) and the > return is at 0x0100, you're gonna have problems (PCLATH has to be changed). > > Are you simulating the program (this should show you exactly what happens). > If it is the computed jump, then you will see the code jump to 0, not 0x0100. > > myke Yes, I am using a computed jump as above and no, I haven't yet investigated a simulator - one shakey step at a time:) I have found the bit about PCLATH in the data sheets and will study it. Thanks for yours and other's help - this will be a useful area! Richard