Hello Tom & 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 > Thanks for the suggestion, I was indeed using picdem2 as a jumping-off basis. If I comment out the `#include macros.asm' directive in each source file then I get umpteen million demands for macro definitions (!! not completely unexpectedly). Next step was to copy/paste the entire macro file contents to each of the two source files. This works partially and I get a project .lst file but it is nonsensical. The .map file at least shows some result, but it only reflects the .lst file ballyhoo. Since part of the objective of using the linker is to allow re-use of modular code, I can't believe that macro files aren't possible. I'm trying to port about 3500 lines of old 16Fxxx code to this, so I'm not the least bit keen to start re-writing the source itself.. The solution's almost bound to be something simple, there must be lots of others out there who've wrestled this bear and won. best regards, John email from the desk of John Sanderson. JS Controls, PO Box 1887, Boksburg 1460, Rep. of S. Africa. Tel/Fax 011 893 4154, Cell 082 741 6275, web http://www.jscontrols.co.za Manufacturer & purveyor of laboratory force testing apparatus & related products & services. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body