My understanding is the *if* is used to control assembly of a block of code, it is not a conditional branch as is basic or other programming languages. Roy ----- Original Message ----- From: "jumanji" To: Sent: Monday, October 06, 2003 5:15 AM Subject: [PIC:] problem with 'IF' > 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 > -- 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