I've never tried replacing the interrupt dispatcher in CCS so, I may be wrong. But, when the description says it doesn't generate start-up code I take it to mean the assembly code that is run before main and then calls main(). By clean-up code I assume CCS means the code that comes after a return from main(). This interpretation of start-up and clean-up is based on my experience with other compilers for other processors. I'd compare the assembly listings (.lst files) created for the working version, to the listing created when you use your own interrupt dispatcher and see what the difference is. Paul > > Did you create your own start-up code? > > The CCS manual says if you replace the global interrupt you lose the > > start-up and clean-up code. > > Yes, this is what I'm trying to do. I've created the start-up and > "finish-up" :) code you can see on the email between the #asm and #endasm > directives (ok, I've forgot one #asm). -- 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