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 > -- = /* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=3D"/* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist