Dario Greggio wrote: > Howard Winter wrote: > > >>Personally I like to have the ISR starting at 4, because I don't like having a GOTO that's not necessary, then the initialisation, then the Main code, then >>the subroutines. > > > Hi Howard, actually placing a GOTO at ISR beginning, can cause problems > on those parts (16F and lower I mean) having more than one page of code, > since this could trash PCLATH *before* you save it. No, WILL cause problems if he has code in other than the first page. Been there. Done that. Have the bruises on the forehead to prove it. You MUST save W, STATUS & PLATH state, and point to your GOTO page before jumping anywhere, or you'll be very sorry. Robert -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist