> > Don't forget that the PIC has a limited range of destinations. Your > > only two choices for d in the this case are F or W, meaning that > > you either move the date in register f to itself or to W, but not > > ever to another register other than those two. In order to mov > > to another register, you must do use the movwf instruction. > > > > Also note that movf w,w or movf w,f do not work! W is not > > really a register in the way that other registers are. The only > > difference between movf TEMP,w and movf TEMP,f is one bit. > > There is no explicit statement of the address of the destination > > register in the binary produced by these mnemonics. > > > > Confused yet? > >If not, then consider that this information is for the 16 family. The 18 >family is different in that it has a MOVFF instruction, and WREG is mapped >to the RAM address space. Olin and Jan-Erik- Thanks for pointing that out. I'd forgotten to mention that. IIRC, the original question was about a 16f87x part, no? Mike H. _________________________________________________________________ Frustrated with dial-up? Get high-speed for as low as $29.95/month (depending on the local service providers in your area). https://broadband.msn.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.