NEIL GANDLER wrote: > I remeber once reading about a quick routine to clear all user > defined bytes in the 16c74. This would be helpfull when there is a > reset that is not a POR, yet would like to clear all memory. I would > appreciate any info. Try this, Neil: MOVLW 020H ;PREPARE TO ZERO ALL GENERAL-PURPOSE MOVWF FSR ;REGISTERS. CLRRAM: MOVLW 080H ;ARE WE POINTING PAST THE FINAL PAGE-0 XORWF FSR,W ;REGISTER? SKPNZ ;IF NOT, SKIP AHEAD. BSF FSR,BIT5 ;OTHERWISE, ADJUST FSR TO SKIP OVER ;THE PAGE-1 SPECIAL-PURPOSE REGISTERS. CLRF INDF ;ZERO THE REGISTER AT WHICH WE'RE ;POINTING. INCFSZ FSR ;HAVE WE DONE THEM ALL? GOTO CLRRAM ;IF NOT, LOOP BACK AND ZERO ANOTHER. -Andy Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California http://www.geocities.com/SiliconValley/2499