At 01:03 AM 1/10/04 +0200, you wrote: >Hello PIC.ers, > >Having spent too many hours trying to tease out this one, maybe someone >can point me in the right direction. Before I lose my remaining hairs. >I'm trying to re-jig old 16Fxxx code to the newer 18Fxxx series and >looking to upgrade the rest of my toolchain (esp. relocatable code) >while I'm about it. >THereafter, I can get on with further projects.. > >` #include macros.asm' at the top of each file. > Has my problem got anything to do with macros, or should I find another >tree to bark up? John, what happens when you comment out the line #include macros.asm ??? I have used the relocatable code mode on one project and at first it was quite cryptic. As errors would come up, I would comment out various lines, make some educated guesses and home in on the problem. You seem to be starting from the picdem2 source code which does work. Figure out what's different from that code to your code and you *will* eventually solve the problem and very possibly have some hair left. Good luck! Tom -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.