> > Just after power up my PIC 73 needs to run a quick RAM check then > initialize all RAM and special function registers to a known state. Any > nifty ideas?...Thanks in advance...gj Not sure how to check rem is ok but the following code clears it all and needs only 'membase' and 'last_reg' defining and it will work with any pic except 5x cause the memory is banked but you can handle them seperatly if needed. Cheers steve..... MOVLW LAST_REG-MEMBASE; LOAD LAST REG WITH 7E MOVWF LAST_REG ; DO IT MOVLW MEMBASE ; MOVE ADDRESS OF FIRST RAM LOCATION INTO FSR MOVWF FSR ; DO IT CLR_REG CLRF INDF ; CLEAR THE REG POINTED TO BY FSR INCF FSR,F ; INCREMENT THE FSR DECFSZ LAST_REG,F ; DEC THE CONTENTS OF LAST_REG GOTO CLR_REG ; IF CONT.'S OF LAST REG IS NOT 0, GOTO CLR_REG CLRF FSR ; CLEAR THE FSR