Brooke wrote: >I am having problems that may be caused by jumping into the memory area >after my >code ends. 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? Fix the code that's causing the jump, don't try to work around it. Use the time to look at the code and see where it could be going of the rails. Tables with no range testing (or restriction) jumping way too far ahead is probably the most common cause. Have a look for missing return statements of the end of subroutines and that sort of thing. Is the code written in assembler? You aren't just letting the code wander off into La La land at the end are you? If the code truly does "end", you'll have to put a loop in there to actually stop it executing code. Like this: code_start: ;start of program ... do_something ;do whatever you need ... loop: ;all done now so goto loop ;code stops here David... -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads