how to invert a byte in pic basic?

Status
Not open for further replies.

huanyong

New Member
hi! anyone know how to complement a byte using pic basic language? say complement 10101010 will becomes 01010101? i cant find any command in the instruction set......thanx!

cheers:>
 
an exclusive OR (XOR) with 11111111 would do it...

I don't know exactly what the command would be for it, as I don't use PIC BASIC...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…