> > Any thoughts. Missig "?" ? But yes, use relocatable code and all that ORG'ing of different pieces of code together goes away. The CODE directives will let the linker sort it out. And besides, why include the I2C code into the ISR address range ? Jan-Erik. Justin Richards wrote 2012-11-12 00:50: > The IDE help in MPLAB states that code is inserted at the point where > the include statement is positioned. > > I have a file that contains subroutines for i2c and looks like I need > place the include file after the org 4 as in > > org 0x0000 > STARTUP: > pagesel Main > goto Main > org 0x0004 ; interrupt vector locatio > #include > > > I suppose I could place the org 4 in the include file, insert the > include file directive where I like and then calculate a new org value > for the main code section. > > Any thoughts. > > Cheers Justin > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .