>I have seen a couple of tips and tricks on PIC programming that I am >looking for again.. >#1 A routine to clear all RAM on startup (16F84) ; Here is the code that I use on the 16c622. You will need to adjust the ; pointers for the 16F84. (Base address and number of loops.) ; Clear RAM memory code movlw H'20' ; Set the pointer to the base of RAM movwf _fsr NEXTRAM: clrf _indf ; Clear the memory location pointed to by FSR incf _fsr,f ; Increment the FSR (file select register) btfss _fsr,6 ; Test if top of ram reached goto NEXTRAM ; Return to next memory location btfss _fsr,5 ; Test if top of ram reached goto NEXTRAM ; Return to next memory location btfss _fsr,4 ; Test if top of ram reached goto NEXTRAM ; Return to next memory location >#2 A routine for saving and restoring W,STATUS, etc.. during >interrupts.. This requires using the swap function to keep from corrupting the STATUS register. It is all detailed on the PIC web site under FAQ.