Ok...the code is movlw 0x20 movwf fsr movlw 0xAB movwf indf Rafael Pinto -----Original Message----- From: Andre Abelian To: PICLIST@MITVMA.MIT.EDU Date: Segunda-feira, 6 de Abril de 1998 18:25 Subject: Re: fsr >Hi HardyThank you for your explanations and example. >I think line 2 instead of movf should be movwf. >unless movf fsr,w > > >Andre > > >> 1. You use to do Indirect register access. An example: >> >> movlw 0x20 >> movf fsr,f >> movlw 0xAB >> movf indf,w >> >> This program loads 0xAB into the register 0x20. This can be used when >> you want to store a table using RAM file registers. FSR points to the >> register and INDF is the contents of the register. >> >> 2. The value wrote in the INDF is stored in the register indicated by >> the value of FSR. >