MCH ha scritto: > 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: > INCF FSR,F > > I think this translates to: > ADDFSR 0,H'1' sorry, totally wrong :) INCF does exist in PIC18 , you only need to add a 3rd parameter which is ACCESS/BANKED > 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. yep, IMO ADDFSR is not a PIC18 mnemonic, but I should check :) > 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. totally off-road :) -- Ciao, Dario -- Cyberdyne -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist