On Sat, 12 May 2007 20:27:01 -0500, "Jeff Farr" wrote: >Here is my situation: After about 3 months of not having time to work >on a project I've just picked it up again and realized that I really >needed to do a ground up re-write of it. I'm using MPLAB so I started >by creating a new folder and new project along with all the baseline >code which I'm modifying. Once I try to build the file I get this at >the output: I'm thinking that the older project is an absolute mode project and the newer one is relocatable. That '& 0xff' is perfectly valid in absolute mode but can't be resolved in relocatable mode> This is because the actual address for the label isn't known until the linker executes. You should use the 'low()' operator in relocatble programs. (Also, be sure that the code handles possible 256-instruction overlaps by incrementing PCLATH when needed since you'll never know where they'll occur in relocatble coding.) Regards, Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist