----- Original Message ----- From: Olin Lathrop To: Sent: Friday, March 23, 2001 12:27 PM Subject: Re: [PIC]: Code Commenting, was: LCD problems revisited > > I understand how it is easy to ensure that PCLATH matches the current > > 256-byte code page on entry to a routine and by resetting it after a call, > > but how do you handle the case where there is a 256 byte boundary between > > the entry point and where you do a computed jump? > > You load PCLATH with the high byte of the table start address, which I > forgot to do in the example. Oops. Yeah, I thought it was something like that. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads