Roberts II, Charles K. wrote: > This is my first time writing code for a PIC. My question is in the > following snip of code will the value of the W register change? I know > this is really basic and something I should know, I apologize for > wasting your time in advance. > > > MOVF RCREG,W ;moves RCREG into W > MOVWF INDF ;copies W into INDF > MOVWF Temp ;Will the value of W that is > put > into > ;Temp be the same as INDF Yes W will still contain the same value, even after the MOVWF Temp executes. Although it's labeled as being a "move" instruction, it's really more of a "copy". ;-) michael brown -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads