Correct, but that's within a module. What about across modules, and across linker sections? It would have been nice if we were coding from scratch... -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Olin Lathrop Sent: September 12, 2003 2:03 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: More 18F458 Quirks > I think all this has something to do with the Program counter > jumping over the 4000h boarder. Note that it isn't just your > main CALL's to subroutines, but every GOTO inside any routine > (that happens to be placed around the address 4000h) have > this problem. So *any* GOTO that your C source produces will/may > show this problem depending on where the linker places the code. The problem within a module is easily fixed by defining separate linker sections from 0h-3FFFh and 4000h on. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body