I replied already with complete code, please have a look, thank you On 2/07/2013 8:11 AM, David Meiklejohn wrote: > That snippet of code is used at the start of an interrupt service routine= to save the processor "context" - the content of key registers which must = then be restored at the end of the ISR. > The problem we're having with helping you here is that you seem to be gra= bbing at fragments of code like this and trying to fit them together like a= jigsaw puzzle, except that you don't see the picture - making the process= a bit random. > So, although it will take you a while, I really recommend you step back = and work through some tutorials (not necessarily mine) to build up the conc= epts like timers and interrupts, to get to the point where you understand w= here all these pieces go. > There are no real short cuts. > > Regards, > David Meiklejohn > www.gooligum.com.au > > > > -------- Original message -------- > From: Electronic Consultation > Date: > To: "Microcontroller discussion list - Public." > Subject: Re: [PIC]Counter in PIC > =20 > Thanks a lot for replying, > I want to make it clear my issue, > > I saw this kind of code on vector.asm > > movwf w_temp ; Saves value in register W > movf STATUS ; Saves value in register STATUS > movwf status_temp > movf PCLATH ; Saves value in register PCLATH > movwf pclath_temp > --=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 .