> -----Original Message----- > From: Jan-Erik Soderholm XA (TN/PAC) > [mailto:jan-erik.xa.soderholm@ERICSSON.COM] > Sent: 15 October 2003 12:03 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC:] RETLW on 18F > > > It seems as PCLATH/PCLATU isn't set to the > correct page. I don't see that you write those > registers directly, but on the other hand the > docs says that they are set when the PCL is *read*. > I supose that to do a "addwf PCL" you have to read the > "PCL" first, but it isn't clear if that counts as a > "read" and sets the PHLATx regs. > > Have you tried with setting the PCLATx regs before > the "addwf PCL" instruction ? > > Or is there some other code that should make sure > thet PCLATx regs are set correctly ? > > Jan-Erik. But surely PCLATH/PCLATU must be set correctly if the CALL jumped to the correct location? Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics