This is one way to write an OR function with two operators. In this case REG,2 will be set if REG,0 is 1 OR REG,1 is 0. And yes, the second word in a 2-instruction word will always be executed as a NOP if it is executed by itself (jumped to or skipped to). /Ruben > Hi all, > I have a question regarding to consecutive btfsX statements. > For example: > > btfss REG, 0 > btfss REG, 1 > bsf REG, 2 > > now obviously when REG,0 is 0 then REG,1 is evaluated as expected, but > what happens if REG,0 is 1? Is bsf REG,2 executed, or is it evaluated > as a NOP? > > The processor is an 18F452, though I'm not sure that's relevant. I > checked the description for BTFSS, and it says that if it's a "skip" > followed by a 2-word instruction, it is followed by 2 NOPs. But does a > conditional followed by a 1-word instruction become a 2-word > instruction? I think not, but I'm not sure. > > Thanks, > - Marcel > -- > 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