> In MPASM, put this line at the end of your program to fill the dead > space with "GOTO xxxx" instructions: > > FILL (GOTO xxxx), 0x400 - $ ; This assumes a device with > ; 1K of code space. That would generate a variable number of instruction to be resolved at link time - something I didn't think the linker knew how to do. Then there's the issue of what if the module containing this code doesn't get located last. Are you using absolute mode perhaps? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics