Quote Originally Posted by skimask View Post
At least you got a plan and stick to it..
About the only change I would make is to put the interrupt handler somewhere near the beginning and skip over it. This will keep the interrupt routines as low in code space as possible. They run just a tad bit quicker because there is just a few less BANKSELecting going on, at least on 16F type PICs. Same thing with any commonly used subroutines, right after the interrupt handler, but before the main loop, for the same reasons.
Thanks.
My program is a huge INT handler
I thought there was some special sequence, so it does not really matter?

"Put your Port declarations before your Tris registers, so when the code turns on the outputs they will initialize in a known state. "
-> Okay. Right, that's a very good reason.