You have to check your compiler docs. I'm sure XC8 does. The MicroC docs (I might not have the latest, if you are using MikroC, verify this) says that W, STATUS, FSR, PCLATH are saved by the compiler. My MicrkC docs doesn't say anything about the newer PIC16's, but that wasn't of any interest to you anyway, right? :-) Jan-Erik. Richard R. Pope wrote 2014-07-21 11:32: > Joe, > I believe that in C the compiler automatically does that. If I am > wrong about this assumption would someone please let me know? > Thanks, > rich! > > On 7/21/2014 4:24 AM, IVP wrote: >>>> I don't understand how to call the interrupt routine... >>> *You* never do. It is "called" automaticly by the interrupt >>> hardware logic whenever an interrupt condition occures. >> Which is of course why, Richard, it's called an interrupt :-)) >> >> Don't forget to add the context saving, as generally you can be >> in some random place executing any other code when the ISR >> is entered, and retaining the values of W and Status is more than >> likely important to the code you return to after the ISR >> >> Joe > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .