ok, new weird thing: if i do: movlw 0xFF movwf PORTA all the bits of PORTA go high but then, if i do: bsf PORTA,2 all the bits of PORTA go low, apart from bit 2 and 4 what is this and how do i stop it? -- View this message in context: http://www.nabble.com/weird-behavior-of-pic16f876-tf3464206.html#a9665366 Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist