INCF exists, but it does not like the FSR location. Also, ADDFSR came right out of the docs for the chip, and the MPLAB says it's valid (it turns color to a command when entered). Joe M. Dario Greggio wrote: > 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 :) > > > > > > > ------------------------------------------------------------------------ > > > 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