Ben; Here's what the CCS compiler does. .................... LED2 = ~LED2; 0051: MOVLW 08 0052: XORWF 06,F Regards; Wayne ----- Original Message ----- From: "Fok, Ben" To: Sent: Monday, October 15, 2001 3:19 PM Subject: [PIC]: What is the easiest way to toggle an I/O line? > Hi folks: > > What is the easiest way to toggle an I/O line without know what the state of > the line is? > > I hate to use a bit test state with a bunch of goto statement. I thought > about using the > xor instruction but can't get it to work. > > Any advice? > > Ben > > -- > 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