Olin Lathrop wrote : > Ah! Now I understand the other problem too (again, this is why I wanted > to see ALL your code). This should be 30h, not 20h. Fine :-) >For now, define GBANKADR as 30h and change the UDATA_SHR in the INTR >module to DEFRAM COMMREGS_FIRST, stay away from the BANKnADR constants, >and everything should work. Did that, still the 154 error. B.t.w, the std_def.ins.aspic contains the following : ifdef __12f629 fam_16 set 1 nregbanks set 2 ncodepages set 1 commregs_first set h'20' commregs_last set h'5F' regstart set h'20' stacklast set h'5F' stacksize set 16 endif Hope this is correct.. Now, if I comment the line : ; ; defram gbankadr ; statement, the error 154 is gone. (There are no RES statements after the "defram gbankadr", so it should not make any harm, or ?) Now I get this instead : MPLINK 3.50, Linker Copyright (c) 2003 Microchip Technology Inc. Error - section '.udata_shr' has a memory 'globalram' which can not fit the section. Section '.udata_shr' length=0x0000000e. Errors : 1 I have been looking throught all RES statement, but can't see why the linker says this. I don't have *that* many variables. You don't have a quick fix for that also ? :-) Jan-Erik. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body