On Sun, 19 Aug 2012 11:57:47 +0200 Jan-Erik Soderholm wrote: > B.t.w, there is no reason to mix "org" and "code" as far as > I know. Jan-Erik, I don't have any org's in my code anymore. I now made sections in the .lkr file to try and get the reset and interrupt code into their places, but have not been able to do so: CODEPAGE NAME=3D.reset START=3D0x0 END=3D0x3 CODEPAGE NAME=3D.intserv START=3D0x4 END=3D0xff CODEPAGE NAME=3Dpage0 START=3D0x100 END=3D0x7FF CODEPAGE NAME=3Dpage1 START=3D0x800 END=3D0xFFF The sections in the program have 'code' like this: page0 code (non-cricitical code) ..reset code (code which has to be at 0) ..intserv code (code which has to be at 4) The .reset code is replaced by the retlw's, and gets shifted to 0x6F (after the .intserv code)! I'm getting quite frustrated with mplabx too - I can't find an option to request a map from the linker, and if I add -m test.map to the linker options, it gets added *twice* to the mplink command line, causing an error. John --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .