Olin Lathrop wrote: > > Is there a way in MPASM to fill the memory space between my program > > end and the end of physical memory with GOTO xxxx so that the > > program will goto an error trapping routine when this happens? > > You can fill a specific number of instructions, but I don't think > there is a way to fill all remaining space automatically. Olin, et al: 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. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- 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