Joe, I don't think you want the extended instruction set - I think it includes some not-so-intuitive changes to how the instructions work. There are enough other ways to increment the FSR pointer without going to those extremes. On Tue, Feb 9, 2010 at 1:34 AM, MCH wrote: > Ahhh! I didn't know I had to do that, but it is in the extended > instruction set part of the docs. > > How do I turn it on? > > Although, I may just try the "INCF FSR0L,1" instead. > > Joe M. > > Tamas Rudnai wrote: >> I think you need to switch on the extended instruction set to have >> ADDFSR instruction. >> >> Tamas >> >> >> On Mon, Feb 8, 2010 at 11:56 PM, MCH wrote: >>> A week or so ago, I asked for some ASM code and stated I could translate >>> it to my current device. Someone commented that "ASM code was ASM code" >>> (paraphrased) and there was no need to translate. >>> >>> Well, I need some help with the "unnecessary" translation. >>> >>> Here is the command in ASM for a PIC16F877A: >>> =A0 =A0 =A0 =A0INCF FSR,F >>> >>> I think this translates to: >>> =A0 =A0 =A0 =A0ADDFSR =A00,H'1' >>> >>> But, I'm getting an error code of: >>> Warning[207] C:\(file).ASM 667 : Found label after column 1. (ADDFSR) >>> >>> There is only a tab before the ADDFSR - just as the other lines of code. >>> >>> Can anyone help me with this translation? Oh, and would I need to use >>> H'2' since this is an 18F to increase to the next address pointer? I >>> remember having to 'double' most of my relative addresses. >>> >>> I'm working on something other than my fan, for which I still am trying >>> to determine the best solution. >>> >>> Joe M. >>> -- >>> http://www.piclist.com PIC/SX FAQ & list archive >>> View/change your membership options at >>> http://mailman.mit.edu/mailman/listinfo/piclist >>> >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.733 / Virus Database: 271.1.1/2676 - Release Date: 02/08/10= 14:35:00 >> > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist