Roberts II, Charles K. wrote: > Does the MOVF instruction behave the same way, meaning that MOVF > copies the contents of f to the location d? So that the contents of f > are the same before and after the execution of the command. > > MOVF f,d The MOVF won't change the contents of register "f", but some registers -- I/O ports, timers, etc. -- can change on their own, so if you're reading THOSE registers, you can't always depend on two consecutive MOVFs reading the same value. If register "f" is a General-Purpose File Register, though, it won't change unless your software changes it... So two consecutive MOVFs will each read the same value. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads