Hello, I'm using mplab6.30 for a PIC18F452 The following code does not seem to work :( clrf SR5PATT if SR5PATT == 0 bsf SR4PATT, 4 else endif bit 4 of SR4PATT, does not get set; setting it outside the 'if'-routine does work. What am I doing wrong ? (I'm not super experienced with asm) Thanks -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics