Hello Jan-Erik, You are right, thanks for pointing me in the right direction. Now I can see clearly where they are. On this light, I agree with you that is better to modify the source code than the linker. You truly helped me, thanks for that VV Jan-Erik Soderholm wrote: Vincent Vega wrote : > However SHAREBANK is used to define RAM memory regions for *unbanked* > registers. *All* RAM on the 16F870 is shared between two or four banks. There is no truly un-banked RAM. > I can't see no indication that the 96 GPR between 0x20 and 0x6F > in Bank0 are *unbanked*,.. They are shared with 120h - 16Fh in bank 3, and the last part (70h - 7Fh) is shared between all four banks. > neither are the > 32 GPR between 0xA0 and 0xBF in Bank1 for that matter... They are shared with 1A0h - 1BFh in bank 4. > If you take the template for the PIC16F870 and the > linker script, both coming with MPLAB you'll see that it > doesn't compile. That doesn't meen that the *LNK file* is wrong. > If I modify the linker script... *I* would modify the source code instead... Best Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist